Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
4740242a
Commit
4740242a
authored
Apr 06, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change text of project creation event for imports.
parent
99abbe7d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
app/models/event.rb
app/models/event.rb
+5
-1
app/views/events/event/_created_project.html.haml
app/views/events/event/_created_project.html.haml
+2
-2
No files found.
app/models/event.rb
View file @
4740242a
...
@@ -183,7 +183,11 @@ class Event < ActiveRecord::Base
...
@@ -183,7 +183,11 @@ class Event < ActiveRecord::Base
elsif
commented?
elsif
commented?
"commented on"
"commented on"
elsif
created_project?
elsif
created_project?
if
project
.
import?
"imported"
else
"created"
"created"
end
else
else
"opened"
"opened"
end
end
...
...
app/views/events/event/_created_project.html.haml
View file @
4740242a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
%a
.twitter-share-button
{
|
%a
.twitter-share-button
{
|
href:
"https://twitter.com/share"
,
|
href:
"https://twitter.com/share"
,
|
"data-url"
=>
event
.
project
.
web_url
,
|
"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-size"
=>
"medium"
,
|
"data-related"
=>
"gitlab"
,
|
"data-related"
=>
"gitlab"
,
|
"data-hashtags"
=>
"gitlab"
,
|
"data-hashtags"
=>
"gitlab"
,
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment