BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
event.rb
app/models/event.rb
+5
-1
_created_project.html.haml
app/views/events/event/_created_project.html.haml
+2
-3
No files found.
app/models/event.rb
View file @
4740242a
...
...
@@ -183,7 +183,11 @@ class Event < ActiveRecord::Base
elsif
commented?
"commented on"
elsif
created_project?
"created"
if
project
.
import?
"imported"
else
"created"
end
else
"opened"
end
...
...
app/views/events/event/_created_project.html.haml
View file @
4740242a
...
...
@@ -18,10 +18,10 @@
%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"
,
|
"data-count"
=>
"none"
}
Tweet
%script
{
src:
"//platform.twitter.com/widgets.js"
}
\ No newline at end of file
%script
{
src:
"//platform.twitter.com/widgets.js"
}
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