Change text of project creation event for imports.
This commit is contained in:
parent
99abbe7dbe
commit
4740242a67
2 changed files with 7 additions and 3 deletions
|
@ -183,7 +183,11 @@ class Event < ActiveRecord::Base
|
|||
elsif commented?
|
||||
"commented on"
|
||||
elsif created_project?
|
||||
if project.import?
|
||||
"imported"
|
||||
else
|
||||
"created"
|
||||
end
|
||||
else
|
||||
"opened"
|
||||
end
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
%a.twitter-share-button{ |
|
||||
href: "https://twitter.com/share", |
|
||||
"data-url" => event.project.web_url, |
|
||||
"data-text" => "I just created a new project in GitLab! GitLab is version control on your server.", |
|
||||
"data-text" => "I just #{event.project.imported? ? "imported" : "created"} a new project in GitLab! GitLab is version control on your server.", |
|
||||
"data-size" => "medium", |
|
||||
"data-related" => "gitlab", |
|
||||
"data-hashtags" => "gitlab", |
|
||||
|
|
Loading…
Reference in a new issue