2015-02-13 06:02:17 -05:00
|
|
|
.event-title
|
|
|
|
%span.author_name= link_to_author event
|
|
|
|
%span.event_label{class: event.action_name}
|
|
|
|
= event_action_name(event)
|
|
|
|
|
|
|
|
- if event.project
|
|
|
|
= link_to_project event.project
|
|
|
|
- else
|
|
|
|
= event.project_name
|
|
|
|
|
|
|
|
- if current_user == event.author && !event.project.private? && twitter_sharing_enabled?
|
|
|
|
.event-body
|
|
|
|
.event-note
|
|
|
|
.md
|
|
|
|
%p
|
|
|
|
Congratulations! Why not share your accomplishment with the world?
|
|
|
|
|
|
|
|
%a.twitter-share-button{ |
|
|
|
|
href: "https://twitter.com/share", |
|
|
|
|
"data-url" => event.project.web_url, |
|
2015-04-24 15:37:12 -04:00
|
|
|
"data-text" => "I just #{event.action_name} a new project on GitLab! GitLab is version control on your server.", |
|
2015-02-13 06:02:17 -05:00
|
|
|
"data-size" => "medium", |
|
|
|
|
"data-related" => "gitlab", |
|
2015-02-14 07:31:46 -05:00
|
|
|
"data-hashtags" => "gitlab", |
|
2015-02-13 06:02:17 -05:00
|
|
|
"data-count" => "none"}
|
|
|
|
Tweet
|
2015-04-06 08:51:41 -04:00
|
|
|
%script{src: "//platform.twitter.com/widgets.js"}
|