Project show page polished
This commit is contained in:
parent
788de6f1c8
commit
1647f46b1f
|
@ -1010,6 +1010,7 @@ p.time {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.project_box,
|
||||||
.issue_box,
|
.issue_box,
|
||||||
.commit_box,
|
.commit_box,
|
||||||
.merge_request_box{
|
.merge_request_box{
|
||||||
|
@ -1028,18 +1029,17 @@ p.time {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.commit_box {
|
.project_box .project_descr,
|
||||||
.commit_message {
|
.commit_box .commit_message {
|
||||||
margin: -20px;
|
margin: -20px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
margin-top:10px;
|
margin-top:10px;
|
||||||
border-radius:0;
|
border-radius:0;
|
||||||
border:none;
|
border:none;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
background-color:#f5f5f5;
|
background-color:#f5f5f5;
|
||||||
border:none;
|
border:none;
|
||||||
border-top:1px solid #eee;
|
border-top:1px solid #eee;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight_word {
|
.highlight_word {
|
||||||
|
|
|
@ -1,27 +1,28 @@
|
||||||
= render "project_head"
|
= render "project_head"
|
||||||
%h3
|
.project_box
|
||||||
= @project.name
|
%h3
|
||||||
%span.right
|
= @project.name
|
||||||
- if can? current_user, :download_code, @project
|
%span.right
|
||||||
= link_to "Download", archive_project_repository_path(@project), :class => "btn small padded"
|
- if can? current_user, :download_code, @project
|
||||||
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
|
= link_to "Download", archive_project_repository_path(@project), :class => "btn small padded"
|
||||||
= link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small padded" do
|
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
|
||||||
Merge Request
|
= link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small padded" do
|
||||||
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
|
Merge Request
|
||||||
= link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small" do
|
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
|
||||||
Issue
|
= link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small" do
|
||||||
.back_link
|
Issue
|
||||||
= link_to projects_path do
|
.back_link
|
||||||
← To projects list
|
= link_to projects_path do
|
||||||
%br
|
← To projects list
|
||||||
.alert-message.block-message.warning
|
%br
|
||||||
.input
|
.alert-message.block-message.warning
|
||||||
.input-prepend
|
.input
|
||||||
%span.add-on git clone
|
.input-prepend
|
||||||
= text_field_tag :project_clone, @project.url_to_repo, :class => "xlarge one_click_select git_clone_url"
|
%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?
|
- if @project.description.present?
|
||||||
.markdown.prettyprint= markdown @project.description
|
.markdown.project_descr= markdown @project.description
|
||||||
- unless @events.blank?
|
- unless @events.blank?
|
||||||
%br
|
%br
|
||||||
%h5.cgray
|
%h5.cgray
|
||||||
|
|
Loading…
Reference in a new issue