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
iv
gitlab-ce
Commits
9dc46eee
Commit
9dc46eee
authored
Mar 06, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return project description back
parent
7b38a0de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
2 deletions
+35
-2
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+1
-0
app/views/projects/_form.html.haml
app/views/projects/_form.html.haml
+8
-0
app/views/projects/_last_commit.html.haml
app/views/projects/_last_commit.html.haml
+11
-0
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+15
-2
No files found.
app/controllers/projects_controller.rb
View file @
9dc46eee
...
@@ -59,6 +59,7 @@ class ProjectsController < ProjectResourceController
...
@@ -59,6 +59,7 @@ class ProjectsController < ProjectResourceController
format
.
html
do
format
.
html
do
if
@project
.
repository
&&
!
@project
.
repository
.
empty?
if
@project
.
repository
&&
!
@project
.
repository
.
empty?
@last_push
=
current_user
.
recent_push
(
@project
.
id
)
@last_push
=
current_user
.
recent_push
(
@project
.
id
)
@last_commit
=
CommitDecorator
.
decorate
(
@project
.
repository
.
commit
)
render
:show
render
:show
else
else
render
"projects/empty"
render
"projects/empty"
...
...
app/views/projects/_form.html.haml
View file @
9dc46eee
...
@@ -9,11 +9,19 @@
...
@@ -9,11 +9,19 @@
Project name is
Project name is
.input
.input
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
-
unless
@repository
.
heads
.
empty?
-
unless
@repository
.
heads
.
empty?
.clearfix
.clearfix
=
f
.
label
:default_branch
,
"Default Branch"
=
f
.
label
:default_branch
,
"Default Branch"
.input
=
f
.
select
(
:default_branch
,
@repository
.
heads
.
map
(
&
:name
),
{},
style:
"width:210px;"
)
.input
=
f
.
select
(
:default_branch
,
@repository
.
heads
.
map
(
&
:name
),
{},
style:
"width:210px;"
)
.clearfix
=
f
.
label
:description
do
Project description
%span
.light
(optional)
.input
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"xxlarge"
,
rows:
3
,
maxlength:
250
%fieldset
.features
%fieldset
.features
%legend
Features:
%legend
Features:
...
...
app/views/projects/_last_commit.html.haml
0 → 100644
View file @
9dc46eee
.commit
%p
%time
.committed_ago
{
datetime:
commit
.
committed_date
,
title:
commit
.
committed_date
.
stamp
(
"Aug 21, 2011 9:23pm"
)
}
=
time_ago_in_words
(
commit
.
committed_date
)
ago
=
commit
.
author_link
avatar:
true
,
size:
16
%p
=
link_to
commit
.
short_id
(
8
),
project_commit_path
(
@project
,
commit
),
class:
"commit_short_id"
=
link_to_gfm
truncate
(
commit
.
title
,
length:
30
),
project_commit_path
(
@project
,
commit
.
id
),
class:
"row_title"
app/views/projects/show.html.haml
View file @
9dc46eee
=
render
"project_head"
=
render
"project_head"
=
render
'clone_panel'
=
render
'clone_panel'
=
render
"events/event_last_push"
,
event:
@last_push
=
render
"events/event_last_push"
,
event:
@last_push
.content_list
=
render
@events
.loading.hide
.row
.span8
.content_list
=
render
@events
.loading.hide
.span4
.ui-box.white
.padded
%h3
.page_title
=
@project
.
name
%hr
-
if
@project
.
description
.
present?
%p
.light
=
@project
.
description
%h5
Last commit:
=
render
'last_commit'
,
commit:
@last_commit
:javascript
:javascript
$
(
function
(){
Pager
.
init
(
20
);
});
$
(
function
(){
Pager
.
init
(
20
);
});
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