Commit f9528bfb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

a bit of restyling for issues and merge request lists

parent b6568db1
...@@ -117,34 +117,10 @@ span.update-author { ...@@ -117,34 +117,10 @@ span.update-author {
} }
.label { .label {
background-color: #474D57; padding: 0px 4px;
font-size: 10px;
&.label-tag { font-style: normal;
background: none; background-color: $link_color;
border: none;
padding: 4px 6px;
color: #444;
text-shadow: 0 0 1px #fff;
&.grouped {
float: left;
margin-right: 6px;
padding: 6px;
}
}
&.label-issue {
background-color: #eee;
border: 1px solid #ccc;
padding: 4px 6px;
color: #444;
text-shadow: 0 0 1px #fff;
&.grouped {
float: left;
margin-right: 6px;
padding: 6px;
}
}
&.label-success { &.label-success {
background-color: #8D8; background-color: #8D8;
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
color: #333; color: #333;
} }
&.btn-white {
background: #FFF;
}
&.primary { &.primary {
background: #2a79A3; background: #2a79A3;
@include linear-gradient(#47A7b7, #2585b5); @include linear-gradient(#47A7b7, #2585b5);
......
.issues_table { .issues_table {
.issue { .issue {
padding: 7px 10px; padding: 10px;
.issue_check { .issue_check {
float: left; float: left;
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
} }
li.merge_request { li.merge_request {
padding: 7px 10px; padding: 10px;
img.avatar { img.avatar {
width: 32px; width: 32px;
margin-top: 1px; margin-top: 1px;
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
/* Note textare */ /* Note textare */
#note_note { #note_note {
height: 80px; height: 80px;
width: 99%; width: 98%;
font-size: 14px; font-size: 14px;
} }
......
= form_tag project_issues_path(@project), method: 'get' do = form_tag project_issues_path(@project), method: 'get' do
%fieldset %fieldset
%legend Status:
%ul.nav.nav-pills.nav-stacked %ul.nav.nav-pills.nav-stacked
%li{class: ("active" if !params[:status])} %li{class: ("active" if !params[:status])}
= link_to project_issues_path(@project, status: nil) do = link_to project_issues_path(@project, status: nil) do
......
...@@ -3,10 +3,8 @@ ...@@ -3,10 +3,8 @@
- if @issues.present? - if @issues.present?
%li.bottom %li.bottom
.row .left= paginate @issues, remote: true, theme: "gitlab"
.span7= paginate @issues, remote: true, theme: "gitlab" .right
.span3.right
%span.cgray.right
%span.issue_counter #{@issues.total_count} %span.issue_counter #{@issues.total_count}
issues for this filter issues for this filter
- else - else
......
...@@ -3,10 +3,6 @@ ...@@ -3,10 +3,6 @@
.issue_check .issue_check
= check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue) = check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue)
.right .right
- issue.labels.each do |label|
%span.label.label-tag.grouped
%i.icon-tag
= label.name
- if issue.notes.any? - if issue.notes.any?
%span.btn.small.disabled.grouped %span.btn.small.disabled.grouped
%i.icon-comment %i.icon-comment
...@@ -36,3 +32,8 @@ ...@@ -36,3 +32,8 @@
- if issue.votes_count > 0 - if issue.votes_count > 0
= render 'votes/votes_inline', votable: issue = render 'votes/votes_inline', votable: issue
%span
- issue.labels.each do |label|
%span.label
%i.icon-tag
= label.name
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
.right .right
- @issue.labels.each do |label| - @issue.labels.each do |label|
%span %span.label
%i.icon-tag %i.icon-tag
= label.name = label.name
   
......
= form_tag project_issues_path(@project), method: 'get' do
%fieldset
%ul.nav.nav-pills.nav-stacked
%li{class: ("active" if (params[:f] == 'open' || !params[:f]))}
= link_to project_merge_requests_path(@project, f: 'open', milestone_id: params[:milestone_id]) do
Open
%li{class: ("active" if params[:f] == "closed")}
= link_to project_merge_requests_path(@project, f: "closed", milestone_id: params[:milestone_id]) do
Closed
%li{class: ("active" if params[:f] == 'assigned-to-me')}
= link_to project_merge_requests_path(@project, f: 'assigned-to-me', milestone_id: params[:milestone_id]) do
Assigned To Me
%li{class: ("active" if params[:f] == 'all')}
= link_to project_merge_requests_path(@project, f: 'all', milestone_id: params[:milestone_id]) do
All
%fieldset
%hr
= link_to "Reset", project_merge_requests_path(@project), class: 'btn right'
...@@ -8,24 +8,13 @@ ...@@ -8,24 +8,13 @@
%br %br
.ui-box .row
.span3
= render 'filter', entity: 'issue'
.span9
.ui-box
.title .title
.left = form_tag project_merge_requests_path(@project), id: "merge_requests_search_form", method: :get, class: :left do
%ul.nav.nav-pills
%li{class: ("active" if (params[:f] == 'open' || !params[:f]))}
= link_to project_merge_requests_path(@project, f: 'open', milestone_id: params[:milestone_id]) do
Open
%li{class: ("active" if params[:f] == "closed")}
= link_to project_merge_requests_path(@project, f: "closed", milestone_id: params[:milestone_id]) do
Closed
%li{class: ("active" if params[:f] == 'assigned-to-me')}
= link_to project_merge_requests_path(@project, f: 'assigned-to-me', milestone_id: params[:milestone_id]) do
To Me
%li{class: ("active" if params[:f] == 'all')}
= link_to project_merge_requests_path(@project, f: 'all', milestone_id: params[:milestone_id]) do
All
.right
= form_tag project_merge_requests_path(@project), id: "merge_requests_search_form", method: :get, class: :right do
= select_tag(:assignee_id, options_from_collection_for_select([unassigned_filter] + @project.users.all, "id", "name", params[:assignee_id]), prompt: "Assignee") = select_tag(:assignee_id, options_from_collection_for_select([unassigned_filter] + @project.users.all, "id", "name", params[:assignee_id]), prompt: "Assignee")
= select_tag(:milestone_id, options_from_collection_for_select([unassigned_filter] + @project.milestones.order("id desc").all, "id", "title", params[:milestone_id]), prompt: "Milestone") = select_tag(:milestone_id, options_from_collection_for_select([unassigned_filter] + @project.milestones.order("id desc").all, "id", "title", params[:milestone_id]), prompt: "Milestone")
= hidden_field_tag :f, params[:f] = hidden_field_tag :f, params[:f]
...@@ -38,9 +27,8 @@ ...@@ -38,9 +27,8 @@
%h4.nothing_here_message Nothing to show here %h4.nothing_here_message Nothing to show here
- if @merge_requests.present? - if @merge_requests.present?
%li.bottom %li.bottom
.row .left= paginate @merge_requests, theme: "gitlab"
.span7= paginate @merge_requests, theme: "gitlab" .right
.span4.right
%span.cgray.right #{@merge_requests.total_count} merge requests for this filter %span.cgray.right #{@merge_requests.total_count} merge requests for this filter
:javascript :javascript
......
= render "repositories/branches_head" = render "commits/head"
.row
.alert .span3
= render "repositories/filter"
.span9
.alert
%p Protected branches designed to prevent push for all except #{link_to "masters", help_permissions_path, class: "vlink"}. %p Protected branches designed to prevent push for all except #{link_to "masters", help_permissions_path, class: "vlink"}.
%p This ability allows: %p This ability allows:
%ul %ul
...@@ -8,7 +11,7 @@ ...@@ -8,7 +11,7 @@
%li forced code review before merge to protected branches %li forced code review before merge to protected branches
%p Read more about project permissions #{link_to "here", help_permissions_path, class: "vlink"} %p Read more about project permissions #{link_to "here", help_permissions_path, class: "vlink"}
- if can? current_user, :admin_project, @project - if can? current_user, :admin_project, @project
= form_for [@project, @protected_branch] do |f| = form_for [@project, @protected_branch] do |f|
-if @protected_branch.errors.any? -if @protected_branch.errors.any?
.alert-message.block-message.error .alert-message.block-message.error
...@@ -23,7 +26,7 @@ ...@@ -23,7 +26,7 @@
   
= f.submit 'Protect', class: "primary btn" = f.submit 'Protect', class: "primary btn"
- unless @branches.empty? - unless @branches.empty?
%table %table
%thead %thead
%tr %tr
......
...@@ -22,6 +22,6 @@ ...@@ -22,6 +22,6 @@
%td %td
- if can? current_user, :download_code, @project - if can? current_user, :download_code, @project
= link_to archive_project_repository_path(@project, ref: branch.name) do = link_to archive_project_repository_path(@project, ref: branch.name) do
%i.icon-download %i.icon-download-alt
Download Download
= render "commits/head" %ul.nav.nav-pills.nav-stacked
%ul.nav.nav-pills
= nav_link(path: 'repositories#show') do = nav_link(path: 'repositories#show') do
= link_to 'Recent', project_repository_path(@project) = link_to 'Recent', project_repository_path(@project)
= nav_link(path: 'protected_branches#index') do = nav_link(path: 'protected_branches#index') do
= link_to project_protected_branches_path(@project) do = link_to project_protected_branches_path(@project) do
%i.icon-lock
Protected Protected
%i.icon-lock
= nav_link(path: 'repositories#branches') do = nav_link(path: 'repositories#branches') do
= link_to 'All', branches_project_repository_path(@project) = link_to 'All branches', branches_project_repository_path(@project)
= render "repositories/branches_head" = render "commits/head"
- unless @branches.empty? .row
.span3
= render "filter"
.span9
- unless @branches.empty?
%table %table
%thead %thead
%tr %tr
%th Name %th Name
%th Last commit %th Last commit
%th %th
%tbody %tbody
- @branches.each do |branch| - @branches.each do |branch|
= render "repositories/branch", branch: branch = render "repositories/branch", branch: branch
= render "branches_head" = render "commits/head"
.row
%table .span3
= render "filter"
.span9
%table
%thead %thead
%tr %tr
%th Name %th Name
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
%td %td
- if can? current_user, :download_code, @project - if can? current_user, :download_code, @project
= link_to archive_project_repository_path(@project, ref: tag.name) do = link_to archive_project_repository_path(@project, ref: tag.name) do
%i.icon-download %i.icon-download-alt
Download Download
- else - else
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
%center %center
= link_to project_blob_path(@project, @id) do = link_to project_blob_path(@project, @id) do
%div.padded %div.padded
%h4
%i.icon-download-alt
%br %br
= image_tag "download.png", width: 64
%h3
Download (#{number_to_human_size blob.size}) Download (#{number_to_human_size blob.size})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment