Skip to content

Commit

Permalink
Add retweet link to announcement (#45)
Browse files Browse the repository at this point in the history
* Add retweet link to announcement

* Move retweet link to right

* Add myself to contributors list
  • Loading branch information
lex111 authored and hugoabonizio committed Oct 2, 2017
1 parent 6bf8ebf commit 1d13836
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ TWITTER_ACCESS_TOKEN_SECRET

* [veelenga](https://github.com/veelenga) V. Elenhaupt - creator, maintainer
* [hugoabonizio](https://github.com/hugoabonizio) Hugo Abonizio - contributor, maintainer
* [lex111](https://github.com/lex111) Alexey Pyltsyn - contributor
13 changes: 8 additions & 5 deletions src/views/announcement/_entry.slang
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ article.hentry
a href="/announcements/#{ announcement.id }" title="#{announcement.created_at.try &.to_s "%b %d, %Y"}"
= time_ago_in_words(announcement.created_at.not_nil!)

- if can_update?(announcement)
span.actions
a href="/announcements/#{ announcement.id }/edit"
i.fa.fa-pencil
a href="/announcements/#{ announcement.id }?_method=delete" onclick="return confirm('Are you sure?');"
i.fa.fa-trash
- if can_update?(announcement)
a href="/announcements/#{ announcement.id }/edit"
i.fa.fa-pencil
a href="/announcements/#{ announcement.id }?_method=delete" onclick="return confirm('Are you sure?');"
i.fa.fa-trash

a href="https://twitter.com/share?text=#{announcement.title}&url=#{SITE.url}#{announcement.short_path}&via=crystallang_ann&related=crystallang_ann" target="_blank" title="Retweet"
i.fa.fa-retweet

0 comments on commit 1d13836

Please sign in to comment.