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
Boxiang Sun
gitlab-ce
Commits
1647f46b
Commit
1647f46b
authored
Mar 26, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project show page polished
parent
788de6f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
34 deletions
+35
-34
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+12
-12
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+23
-22
No files found.
app/assets/stylesheets/common.scss
View file @
1647f46b
...
...
@@ -1010,6 +1010,7 @@ p.time {
}
}
.project_box
,
.issue_box
,
.commit_box
,
.merge_request_box
{
...
...
@@ -1028,18 +1029,17 @@ p.time {
}
}
.commit_box
{
.commit_message
{
margin
:
-20px
;
padding
:
20px
;
margin-top
:
10px
;
border-radius
:
0
;
border
:none
;
font-size
:
12px
;
background-color
:
#f5f5f5
;
border
:none
;
border-top
:
1px
solid
#eee
;
}
.project_box
.project_descr
,
.commit_box
.commit_message
{
margin
:
-20px
;
padding
:
20px
;
margin-top
:
10px
;
border-radius
:
0
;
border
:none
;
font-size
:
12px
;
background-color
:
#f5f5f5
;
border
:none
;
border-top
:
1px
solid
#eee
;
}
.highlight_word
{
...
...
app/views/projects/show.html.haml
View file @
1647f46b
=
render
"project_head"
%h3
=
@project
.
name
%span
.right
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
"Download"
,
archive_project_repository_path
(
@project
),
:class
=>
"btn small padded"
-
if
@project
.
merge_requests_enabled
&&
can?
(
current_user
,
:write_merge_request
,
@project
)
=
link_to
new_project_merge_request_path
(
@project
),
:title
=>
"New Merge Request"
,
:class
=>
"btn small padded"
do
Merge Request
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
=
link_to
new_project_issue_path
(
@project
),
:title
=>
"New Issue"
,
:class
=>
"btn small"
do
Issue
.back_link
=
link_to
projects_path
do
←
To projects list
%br
.alert-message.block-message.warning
.input
.input-prepend
%span
.add-on
git clone
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
:class
=>
"xlarge one_click_select git_clone_url"
.project_box
%h3
=
@project
.
name
%span
.right
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
"Download"
,
archive_project_repository_path
(
@project
),
:class
=>
"btn small padded"
-
if
@project
.
merge_requests_enabled
&&
can?
(
current_user
,
:write_merge_request
,
@project
)
=
link_to
new_project_merge_request_path
(
@project
),
:title
=>
"New Merge Request"
,
:class
=>
"btn small padded"
do
Merge Request
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
=
link_to
new_project_issue_path
(
@project
),
:title
=>
"New Issue"
,
:class
=>
"btn small"
do
Issue
.back_link
=
link_to
projects_path
do
←
To projects list
%br
.alert-message.block-message.warning
.input
.input-prepend
%span
.add-on
git clone
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
:class
=>
"xlarge one_click_select git_clone_url"
-
if
@project
.
description
.
present?
.markdown.prettyprint
=
markdown
@project
.
description
-
if
@project
.
description
.
present?
.markdown.project_descr
=
markdown
@project
.
description
-
unless
@events
.
blank?
%br
%h5
.cgray
...
...
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