Commit 40a8ae5e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'refactor_css' into 'master'

Refactor Css
parents e868de68 32ecb027
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
@import "generic/issue_box.scss"; @import "generic/issue_box.scss";
@import "generic/files.scss"; @import "generic/files.scss";
@import "generic/lists.scss"; @import "generic/lists.scss";
@import "generic/flash.scss";
@import "generic/forms.scss"; @import "generic/forms.scss";
@import "generic/selects.scss"; @import "generic/selects.scss";
@import "generic/highlight.scss"; @import "generic/highlight.scss";
......
...@@ -2,3 +2,18 @@ ...@@ -2,3 +2,18 @@
background: #f9f9f9; background: #f9f9f9;
padding: 15px; padding: 15px;
} }
.centered-light-block {
text-align: center;
color: #888;
margin: 20px;
}
.nothing-here-block {
text-align: center;
padding: 20px;
color: #666;
font-weight: normal;
font-size: 16px;
line-height: 36px;
}
...@@ -158,6 +158,14 @@ ...@@ -158,6 +158,14 @@
color: #468847; color: #468847;
} }
} }
&.btn-grouped {
margin-right: 7px;
float: left;
&:last-child {
margin-right: 0px;
}
}
} }
.btn-block { .btn-block {
...@@ -169,16 +177,5 @@ ...@@ -169,16 +177,5 @@
} }
} }
.btn,
.btn-group {
&.grouped {
margin-right: 7px;
float: left;
&:last-child {
margin-right: 0px;
}
}
}
.btn-group-small > .btn { @extend .btn.btn-small; } .btn-group-small > .btn { @extend .btn.btn-small; }
.btn-group-tiny > .btn { @extend .btn.btn-tiny; } .btn-group-tiny > .btn { @extend .btn.btn-tiny; }
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
.bgred { background: #F2DEDE!important } .bgred { background: #F2DEDE!important }
/** COMMON CLASSES **/ /** COMMON CLASSES **/
.left { float:left }
.prepend-top-10 { margin-top:10px } .prepend-top-10 { margin-top:10px }
.prepend-top-20 { margin-top:20px } .prepend-top-20 { margin-top:20px }
.prepend-left-10 { margin-left:10px } .prepend-left-10 { margin-left:10px }
...@@ -24,32 +22,9 @@ ...@@ -24,32 +22,9 @@
.append-bottom-20 { margin-bottom:20px } .append-bottom-20 { margin-bottom:20px }
.inline { display: inline-block } .inline { display: inline-block }
.padded { padding:20px } .underlined-link { text-decoration: underline; }
.ipadded { padding:20px!important }
.lborder { border-left:1px solid #eee }
.underlined_link { text-decoration: underline; }
.hint { font-style: italic; color: #999; } .hint { font-style: italic; color: #999; }
.light { color: #888 } .light { color: #888 }
.tiny { font-weight: normal }
.vtop { vertical-align: top !important; }
/** ALERT MESSAGES **/
.alert.alert-disabled {
background: #EEE;
color: #777;
border-color: #DDD;
}
/** HELPERS **/
.nothing_here_message {
text-align: center;
padding: 20px;
color: #666;
font-weight: normal;
font-size: 16px;
line-height: 36px;
}
.slead { .slead {
color: #666; color: #666;
...@@ -59,53 +34,23 @@ ...@@ -59,53 +34,23 @@
line-height: 24px; line-height: 24px;
} }
.tab-content { .tab-content {
overflow: visible; overflow: visible;
} }
@media (max-width: 1200px) { pre {
.only-wide { &.clean {
display: none; background: none;
} border: none;
} margin: 0;
padding: 0;
pre.well-pre {
border: 1px solid #EEE;
background: #f9f9f9;
border-radius: 0;
color: #555;
}
.input-append .btn.active, .input-prepend .btn.active {
background: #CCC;
border-color: #BBB;
text-shadow: 0 1px 1px #fff;
font-weight: bold;
@include box-shadow(inset 0 2px 4px rgba(0,0,0,.15));
}
/** Big Labels **/
.state-label {
font-size: 14px;
padding: 9px 25px;
text-align: center;
text-shadow: none;
margin-right: 20px;
&.state-label-blue {
background: #31708f;
color: #FFF;
}
&.state-label-green {
background: #4A4;
color: #FFF;
} }
&.state-label-red { &.well-pre {
background: #DA4E49; border: 1px solid #EEE;
color: #FFF; background: #f9f9f9;
border-radius: 0;
color: #555;
} }
} }
...@@ -135,31 +80,6 @@ pre.well-pre { ...@@ -135,31 +80,6 @@ pre.well-pre {
} }
/** FLASH message **/ /** FLASH message **/
.flash-container {
display: none;
cursor: pointer;
margin: 0;
text-align: center;
color: #fff;
font-size: 14px;
position: fixed;
bottom: 0;
width: 100%;
opacity: 0.8;
z-index: 100;
.flash-notice {
background: #49C;
padding: 10px;
text-shadow: 0 1px 1px #178;
}
.flash-alert {
background: #C67;
text-shadow: 0 1px 1px #945;
padding: 10px;
}
}
.author_link { .author_link {
color: $link_color; color: $link_color;
} }
...@@ -279,22 +199,6 @@ li.note { ...@@ -279,22 +199,6 @@ li.note {
cursor: pointer; cursor: pointer;
} }
.merge-request,
.issue {
&.today{
background: #EFE;
border-color: #CEC;
}
&.closed {
background: #F5f5f5;
border-color: #E5E5E5;
}
&.merged {
background: #F5f5f5;
border-color: #E5E5E5;
}
}
.git_error_tips { .git_error_tips {
@extend .col-md-6; @extend .col-md-6;
text-align: left; text-align: left;
...@@ -358,15 +262,6 @@ li.note { ...@@ -358,15 +262,6 @@ li.note {
} }
} }
pre {
&.clean {
background: none;
border: none;
margin: 0;
padding: 0;
}
}
.milestone { .milestone {
&.milestone-closed { &.milestone-closed {
background: #eee; background: #eee;
...@@ -450,40 +345,6 @@ table { ...@@ -450,40 +345,6 @@ table {
margin-bottom: 20px; margin-bottom: 20px;
} }
.ajax-users-select {
width: 400px;
&.input-large {
width: 210px;
}
&.input-clamp {
max-width: 100%;
}
}
.user-result {
.user-image {
float: left;
}
.user-name {
}
.user-username {
color: #999;
}
}
.namespace-result {
.namespace-kind {
color: #AAA;
font-weight: normal;
}
.namespace-path {
margin-left: 10px;
font-weight: bolder;
}
}
.btn-sign-in { .btn-sign-in {
margin-top: 7px; margin-top: 7px;
text-shadow: none; text-shadow: none;
......
.flash-container {
display: none;
cursor: pointer;
margin: 0;
text-align: center;
color: #fff;
font-size: 14px;
position: fixed;
bottom: 0;
width: 100%;
opacity: 0.8;
z-index: 100;
.flash-notice {
background: #49C;
padding: 10px;
text-shadow: 0 1px 1px #178;
}
.flash-alert {
background: #C67;
text-shadow: 0 1px 1px #945;
padding: 10px;
}
}
...@@ -48,4 +48,27 @@ ...@@ -48,4 +48,27 @@
margin: 0; margin: 0;
} }
} }
.state-label {
font-size: 14px;
padding: 9px 25px;
text-align: center;
text-shadow: none;
margin-right: 20px;
&.state-label-blue {
background: #31708f;
color: #FFF;
}
&.state-label-green {
background: #4A4;
color: #FFF;
}
&.state-label-red {
background: #DA4E49;
color: #FFF;
}
}
} }
...@@ -87,3 +87,37 @@ select { ...@@ -87,3 +87,37 @@ select {
padding-top: 4px; padding-top: 4px;
} }
} }
.ajax-users-select {
width: 400px;
&.input-large {
width: 210px;
}
&.input-clamp {
max-width: 100%;
}
}
.user-result {
.user-image {
float: left;
}
.user-name {
}
.user-username {
color: #999;
}
}
.namespace-result {
.namespace-kind {
color: #AAA;
font-weight: normal;
}
.namespace-path {
margin-left: 10px;
font-weight: bolder;
}
}
...@@ -125,3 +125,21 @@ ...@@ -125,3 +125,21 @@
form.edit-issue { form.edit-issue {
margin: 0; margin: 0;
} }
.merge-request,
.issue {
&.today {
background: #EFE;
border-color: #CEC;
}
&.closed {
background: #F5f5f5;
border-color: #E5E5E5;
}
&.merged {
background: #F5f5f5;
border-color: #E5E5E5;
}
}
...@@ -53,5 +53,5 @@ ...@@ -53,5 +53,5 @@
= link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small" = link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
= link_to 'Destroy', [project], data: { confirm: remove_project_message(project) }, method: :delete, class: "btn btn-small btn-remove" = link_to 'Destroy', [project], data: { confirm: remove_project_message(project) }, method: :delete, class: "btn btn-small btn-remove"
- if @projects.blank? - if @projects.blank?
%p.nothing_here_message 0 projects matches .nothing-here-block 0 projects matches
= paginate @projects, theme: "gitlab" = paginate @projects, theme: "gitlab"
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
%span.cred (Admin) %span.cred (Admin)
.pull-right .pull-right
= link_to edit_admin_user_path(@user), class: "btn grouped" do = link_to edit_admin_user_path(@user), class: "btn btn-grouped" do
%i.icon-edit %i.icon-edit
Edit Edit
%hr %hr
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
- if @events.any? - if @events.any?
.content_list .content_list
- else - else
%p.nothing_here_message Projects activity will be displayed here .nothing-here-block Projects activity will be displayed here
= spinner = spinner
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
%i.icon-angle-right %i.icon-angle-right
- if groups.blank? - if groups.blank?
%li %li
%h3.nothing_here_message You have no groups yet. .nothing-here-block You have no groups yet.
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
- if projects.blank? - if projects.blank?
%li %li
%h3.nothing_here_message There are no projects here. .nothing-here-block There are no projects here.
- if @projects_count > @projects_limit - if @projects_count > @projects_limit
%li.bottom %li.bottom
%span.light %span.light
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
- if @projects.blank? - if @projects.blank?
%li %li
%h3.nothing_here_message There are no projects here. .nothing-here-block There are no projects here.
.bottom .bottom
= paginate @projects, theme: "gitlab" = paginate @projects, theme: "gitlab"
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
= project.name_with_namespace = project.name_with_namespace
%small.pull-right= entities_per_project(project, entity) %small.pull-right= entities_per_project(project, entity)
- if @projects.blank? - if @projects.blank?
%p.nothing_here_message This group has no projects yet .nothing-here-block This group has no projects yet
%fieldset %fieldset
%hr %hr
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
New project New project
%ul.well-list %ul.well-list
- if projects.blank? - if projects.blank?
%p.nothing_here_message This groups has no projects yet .nothing-here-block This groups has no projects yet
- projects.each do |project| - projects.each do |project|
%li.project-row %li.project-row
= link_to project_path(project), class: dom_class(project) do = link_to project_path(project), class: dom_class(project) do
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
= link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small" = link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
= link_to 'Remove', project, data: { confirm: remove_project_message(project)}, method: :delete, class: "btn btn-small btn-remove" = link_to 'Remove', project, data: { confirm: remove_project_message(project)}, method: :delete, class: "btn btn-small btn-remove"
- if @group.projects.blank? - if @group.projects.blank?
%p.nothing_here_message This group has no projects yet .nothing-here-block This group has no projects yet
.tab-pane#tab-remove .tab-pane#tab-remove
.ui-box.ui-box-danger .ui-box.ui-box-danger
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
- if @events.any? - if @events.any?
.content_list .content_list
- else - else
%p.nothing_here_message Project activity will be displayed here .nothing-here-block Project activity will be displayed here
= spinner = spinner
.side.col-md-4 .side.col-md-4
.light-well.append-bottom-20 .light-well.append-bottom-20
......
...@@ -18,12 +18,12 @@ ...@@ -18,12 +18,12 @@
%li %li
.pull-right .pull-right
- if can?(current_user, :manage_group, group) - if can?(current_user, :manage_group, group)
= link_to edit_group_path(group), class: "btn-small btn grouped" do = link_to edit_group_path(group), class: "btn-small btn btn-grouped" do
%i.icon-cogs %i.icon-cogs
Settings Settings
- if can?(current_user, :destroy, user_group) - if can?(current_user, :destroy, user_group)
= link_to leave_profile_group_path(group), data: { confirm: leave_group_message(group.name) }, method: :delete, class: "btn-small btn grouped", title: 'Remove user from group' do = link_to leave_profile_group_path(group), data: { confirm: leave_group_message(group.name) }, method: :delete, class: "btn-small btn btn-grouped", title: 'Remove user from group' do
%i.icon-signout %i.icon-signout
Leave Leave
......
...@@ -17,6 +17,6 @@ ...@@ -17,6 +17,6 @@
= render @keys = render @keys
- if @keys.blank? - if @keys.blank?
%li %li
%h3.nothing_here_message There are no SSH keys with access to your account. .nothing-here-block There are no SSH keys with access to your account.
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
- unless blob.empty? - unless blob.empty?
= render 'shared/file_hljs', blob: blob = render 'shared/file_hljs', blob: blob
- else - else
%p.nothing_here_message Empty file .nothing-here-block Empty file
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
- if can?(current_user, :download_code, @project) - if can?(current_user, :download_code, @project)
= render 'projects/repositories/download_archive', ref: branch.name, btn_class: 'grouped btn-group-small' = render 'projects/repositories/download_archive', ref: branch.name, btn_class: 'grouped btn-group-small'
- if branch.name != @repository.root_ref - if branch.name != @repository.root_ref
= link_to project_compare_index_path(@project, from: @repository.root_ref, to: branch.name), class: 'btn grouped btn-small', method: :post, title: "Compare" do = link_to project_compare_index_path(@project, from: @repository.root_ref, to: branch.name), class: 'btn btn-grouped btn-small', method: :post, title: "Compare" do
%i.icon-copy %i.icon-copy
Compare Compare
- if can?(current_user, :admin_project, @project) && branch.name != @repository.root_ref - if can?(current_user, :admin_project, @project) && branch.name != @repository.root_ref
= link_to project_branch_path(@project, branch.name), class: 'btn grouped btn-small remove-row', method: :delete, data: { confirm: 'Removed branch cannot be restored. Are you sure?'}, remote: true do = link_to project_branch_path(@project, branch.name), class: 'btn btn-grouped btn-small remove-row', method: :delete, data: { confirm: 'Removed branch cannot be restored. Are you sure?'}, remote: true do
%i.icon-trash %i.icon-trash
- if commit - if commit
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
%ul.dropdown-menu %ul.dropdown-menu
%li= link_to "Email Patches", project_commit_path(@project, @commit, format: :patch) %li= link_to "Email Patches", project_commit_path(@project, @commit, format: :patch)
%li= link_to "Plain Diff", project_commit_path(@project, @commit, format: :diff) %li= link_to "Plain Diff", project_commit_path(@project, @commit, format: :diff)
= link_to project_tree_path(@project, @commit), class: "btn btn-primary grouped" do = link_to project_tree_path(@project, @commit), class: "btn btn-primary btn-grouped" do
%span Browse Code » %span Browse Code »
%div %div
......
...@@ -8,18 +8,18 @@ ...@@ -8,18 +8,18 @@
- if current_controller?(:commit) or current_controller?(:merge_requests) - if current_controller?(:commit) or current_controller?(:merge_requests)
Please, download the diff as Please, download the diff as
- if current_controller?(:commit) - if current_controller?(:commit)
= link_to "plain diff", project_commit_path(@project, @commit, format: :diff), class: "underlined_link" = link_to "plain diff", project_commit_path(@project, @commit, format: :diff), class: "underlined-link"
or or
= link_to "email patch", project_commit_path(@project, @commit, format: :patch), class: "underlined_link" = link_to "email patch", project_commit_path(@project, @commit, format: :patch), class: "underlined-link"
- else - else
= link_to "plain diff", project_merge_request_path(@project, @merge_request, format: :diff), class: "underlined_link" = link_to "plain diff", project_merge_request_path(@project, @merge_request, format: :diff), class: "underlined-link"
or or
= link_to "email patch", project_merge_request_path(@project, @merge_request, format: :patch), class: "underlined_link" = link_to "email patch", project_merge_request_path(@project, @merge_request, format: :patch), class: "underlined-link"
instead. instead.
- unless @force_suppress_diff - unless @force_suppress_diff
%p %p
If you still want to see the diff If you still want to see the diff
= link_to "click this link", url_for(force_show_diff: true), class: "underlined_link" = link_to "click this link", url_for(force_show_diff: true), class: "underlined-link"
%p.commit-stat-summary %p.commit-stat-summary
Showing Showing
...@@ -82,4 +82,4 @@ ...@@ -82,4 +82,4 @@
- old_file = project.repository.blob_at(@commit.parent_id, diff.old_path) if @commit.parent_id - old_file = project.repository.blob_at(@commit.parent_id, diff.old_path) if @commit.parent_id
= render "projects/commits/image", diff: diff, old_file: old_file, file: file, index: i = render "projects/commits/image", diff: diff, old_file: old_file, file: file, index: i
- else - else
%p.nothing_here_message No preview for this file type .nothing-here-block No preview for this file type
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
= render @enabled_keys = render @enabled_keys
- if @enabled_keys.blank? - if @enabled_keys.blank?
.light-well .light-well
%p.nothing_here_message Create a #{link_to 'new deploy key', new_project_deploy_key_path(@project)} or add an existing one .nothing-here-block Create a #{link_to 'new deploy key', new_project_deploy_key_path(@project)} or add an existing one
.col-md-6.available-keys .col-md-6.available-keys
%h5 %h5
%strong Deploy keys %strong Deploy keys
...@@ -29,4 +29,4 @@ ...@@ -29,4 +29,4 @@
= render @available_keys = render @available_keys
- if @available_keys.blank? - if @available_keys.blank?
.light-well .light-well
%p.nothing_here_message Deploy keys from projects you have access to will be displayed here .nothing-here-block Deploy keys from projects you have access to will be displayed here
...@@ -93,10 +93,11 @@ ...@@ -93,10 +93,11 @@
%center.light.prepend-top-20.padded .centered-light-block
%h3 %h3
%i.icon-warning-sign %i.icon-warning-sign
Dangerous settings Dangerous settings
%p Project settings below may result in data loss! %p Project settings below may result in data loss!
= link_to '#', class: 'btn js-toggle-visibility-link' do = link_to '#', class: 'btn js-toggle-visibility-link' do
Show it to me Show it to me
...@@ -132,7 +133,7 @@ ...@@ -132,7 +133,7 @@
data: { confirm: "Are you sure that you want to archive this project?\nAn archived project cannot be committed to." }, data: { confirm: "Are you sure that you want to archive this project?\nAn archived project cannot be committed to." },
method: :post, class: "btn btn-remove" method: :post, class: "btn btn-remove"
- else - else
%p.nothing_here_message Only the project owner can archive a project .nothing-here-block Only the project owner can archive a project
- if can?(current_user, :change_namespace, @project) - if can?(current_user, :change_namespace, @project)
.ui-box.ui-box-danger .ui-box.ui-box-danger
...@@ -153,7 +154,7 @@ ...@@ -153,7 +154,7 @@
.form-actions .form-actions
= f.submit 'Transfer', class: "btn btn-remove" = f.submit 'Transfer', class: "btn btn-remove"
- else - else
%p.nothing_here_message Only the project owner can transfer a project .nothing-here-block Only the project owner can transfer a project
.ui-box.ui-box-danger .ui-box.ui-box-danger
.title Rename repository .title Rename repository
...@@ -185,7 +186,7 @@ ...@@ -185,7 +186,7 @@
= link_to 'Remove project', @project, data: { confirm: remove_project_message(@project) }, method: :delete, class: "btn btn-remove" = link_to 'Remove project', @project, data: { confirm: remove_project_message(@project) }, method: :delete, class: "btn btn-remove"
- else - else
%p.nothing_here_message Only project owner can remove a project .nothing-here-block Only project owner can remove a project
.save-project-loader.hide .save-project-loader.hide
%center %center
......
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
- @hooks.each do |hook| - @hooks.each do |hook|
%li %li
.pull-right .pull-right
= link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn btn-small grouped" = link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn btn-small btn-grouped"
= link_to 'Remove', project_hook_path(@project, hook), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove btn-small grouped" = link_to 'Remove', project_hook_path(@project, hook), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove btn-small btn-grouped"
.clearfix .clearfix
%span.monospace= hook.url %span.monospace= hook.url
%p %p
......
...@@ -38,10 +38,10 @@ ...@@ -38,10 +38,10 @@
.issue-actions .issue-actions
- if can? current_user, :modify_issue, issue - if can? current_user, :modify_issue, issue
- if issue.closed? - if issue.closed?
= link_to 'Reopen', project_issue_path(issue.project, issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-small grouped reopen_issue", remote: true = link_to 'Reopen', project_issue_path(issue.project, issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-small btn-grouped reopen_issue", remote: true
- else - else
= link_to 'Close', project_issue_path(issue.project, issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-small grouped close_issue", remote: true = link_to 'Close', project_issue_path(issue.project, issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-small btn-grouped close_issue", remote: true
= link_to edit_project_issue_path(issue.project, issue), class: "btn btn-small edit-issue-link grouped" do = link_to edit_project_issue_path(issue.project, issue), class: "btn btn-small edit-issue-link btn-grouped" do
%i.icon-edit %i.icon-edit
Edit Edit
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
= render @issues = render @issues
- if @issues.blank? - if @issues.blank?
%li %li
%h4.nothing_here_message No issues to show .nothing-here-block No issues to show
- if @issues.present? - if @issues.present?
.pull-right .pull-right
......
...@@ -3,16 +3,16 @@ ...@@ -3,16 +3,16 @@
%span.pull-right %span.pull-right
- if can?(current_user, :write_issue, @project) - if can?(current_user, :write_issue, @project)
= link_to new_project_issue_path(@project), class: "btn grouped", title: "New Issue", id: "new_issue_link" do = link_to new_project_issue_path(@project), class: "btn btn-grouped", title: "New Issue", id: "new_issue_link" do
%i.icon-plus %i.icon-plus
New Issue New Issue
- if can?(current_user, :modify_issue, @issue) - if can?(current_user, :modify_issue, @issue)
- if @issue.closed? - if @issue.closed?
= link_to 'Reopen', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn grouped btn-reopen" = link_to 'Reopen', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-grouped btn-reopen"
- else - else
= link_to 'Close', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn grouped btn-close", title: "Close Issue" = link_to 'Close', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-grouped btn-close", title: "Close Issue"
= link_to edit_project_issue_path(@project, @issue), class: "btn grouped" do = link_to edit_project_issue_path(@project, @issue), class: "btn btn-grouped" do
%i.icon-edit %i.icon-edit
Edit Edit
...@@ -55,9 +55,9 @@ ...@@ -55,9 +55,9 @@
- content_for :note_actions do - content_for :note_actions do
- if can?(current_user, :modify_issue, @issue) - if can?(current_user, :modify_issue, @issue)
- if @issue.closed? - if @issue.closed?
= link_to 'Reopen Issue', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn grouped btn-reopen" = link_to 'Reopen Issue', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-grouped btn-reopen"
- else - else
= link_to 'Close Issue', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn grouped btn-close", title: "Close Issue" = link_to 'Close Issue', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-grouped btn-close", title: "Close Issue"
.participants .participants
%cite.cgray #{@issue.participants.count} participants %cite.cgray #{@issue.participants.count} participants
......
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
- else - else
.light-well .light-well
%h3.nothing_here_message Add first label to your issues or #{link_to 'generate', generate_project_labels_path(@project), method: :post} default set of labels .nothing-here-block Add first label to your issues or #{link_to 'generate', generate_project_labels_path(@project), method: :post} default set of labels
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
- content_for :note_actions do - content_for :note_actions do
- if can?(current_user, :modify_merge_request, @merge_request) - if can?(current_user, :modify_merge_request, @merge_request)
- unless @merge_request.closed? - unless @merge_request.closed?
= link_to 'Close', project_merge_request_path(@project, @merge_request, merge_request: {state_event: :close }), method: :put, class: "btn grouped btn-close", title: "Close merge request" = link_to 'Close', project_merge_request_path(@project, @merge_request, merge_request: {state_event: :close }), method: :put, class: "btn btn-grouped btn-close", title: "Close merge request"
.notes.tab-content.voting_notes#notes{ class: (controller.action_name == 'show') ? "" : "hide" } .notes.tab-content.voting_notes#notes{ class: (controller.action_name == 'show') ? "" : "hide" }
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
= render @merge_requests = render @merge_requests
- if @merge_requests.blank? - if @merge_requests.blank?
%li %li
%h4.nothing_here_message No merge requests to show .nothing-here-block No merge requests to show
- if @merge_requests.present? - if @merge_requests.present?
.pull-right .pull-right
%span.cgray.pull-right #{@merge_requests.total_count} merge requests for this filter %span.cgray.pull-right #{@merge_requests.total_count} merge requests for this filter
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
= render "projects/commits/commit", commit: commit, project: @merge_request.source_project = render "projects/commits/commit", commit: commit, project: @merge_request.source_project
- else - else
%h4.nothing_here_message .nothing-here-block
Nothing to merge from Nothing to merge from
%span.label-branch #{@merge_request.source_branch} %span.label-branch #{@merge_request.source_branch}
to to
......
- if @merge_request_diff.collected? - if @merge_request_diff.collected?
= render "projects/commits/diffs", diffs: @merge_request.diffs, project: @merge_request.source_project = render "projects/commits/diffs", diffs: @merge_request.diffs, project: @merge_request.source_project
- elsif @merge_request_diff.empty? - elsif @merge_request_diff.empty?
%h4.nothing_here_message Nothing to merge from #{@merge_request.source_branch} into #{@merge_request.target_branch} .nothing-here-block Nothing to merge from #{@merge_request.source_branch} into #{@merge_request.target_branch}
- else - else
.bs-callout.bs-callout-warning .bs-callout.bs-callout-warning
%h4 %h4
......
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
%li= link_to "Email Patches", project_merge_request_path(@project, @merge_request, format: :patch) %li= link_to "Email Patches", project_merge_request_path(@project, @merge_request, format: :patch)
%li= link_to "Plain Diff", project_merge_request_path(@project, @merge_request, format: :diff) %li= link_to "Plain Diff", project_merge_request_path(@project, @merge_request, format: :diff)
= link_to 'Close', project_merge_request_path(@project, @merge_request, merge_request: { state_event: :close }), method: :put, class: "btn grouped btn-close", title: "Close merge request" = link_to 'Close', project_merge_request_path(@project, @merge_request, merge_request: { state_event: :close }), method: :put, class: "btn btn-grouped btn-close", title: "Close merge request"
= link_to edit_project_merge_request_path(@project, @merge_request), class: "btn grouped", id:"edit_merge_request" do = link_to edit_project_merge_request_path(@project, @merge_request), class: "btn btn-grouped", id:"edit_merge_request" do
%i.icon-edit %i.icon-edit
Edit Edit
......
%li{class: "milestone milestone-#{milestone.closed? ? 'closed' : 'open'}", id: dom_id(milestone) } %li{class: "milestone milestone-#{milestone.closed? ? 'closed' : 'open'}", id: dom_id(milestone) }
.pull-right .pull-right
- if can?(current_user, :admin_milestone, milestone.project) and milestone.active? - if can?(current_user, :admin_milestone, milestone.project) and milestone.active?
= link_to edit_project_milestone_path(milestone.project, milestone), class: "btn btn-small edit-milestone-link grouped" do = link_to edit_project_milestone_path(milestone.project, milestone), class: "btn btn-small edit-milestone-link btn-grouped" do
%i.icon-edit %i.icon-edit
Edit Edit
= link_to 'Close Milestone', project_milestone_path(@project, milestone, milestone: {state_event: :close }), method: :put, remote: true, class: "btn btn-small btn-remove" = link_to 'Close Milestone', project_milestone_path(@project, milestone, milestone: {state_event: :close }), method: :put, remote: true, class: "btn btn-small btn-remove"
......
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
- if @milestones.blank? - if @milestones.blank?
%li %li
%h3.nothing_here_message No milestones to show .nothing-here-block No milestones to show
= paginate @milestones, theme: "gitlab" = paginate @milestones, theme: "gitlab"
...@@ -3,21 +3,15 @@ ...@@ -3,21 +3,15 @@
Milestone ##{@milestone.iid} Milestone ##{@milestone.iid}
%small %small
= @milestone.expires_at = @milestone.expires_at
- if @milestone.closed?
%span.state-label.state-label-red Closed
- elsif @milestone.expired?
%span.state-label.state-label-red Expired
- else
%span.state-label.state-label-green Open
.pull-right .pull-right
- if can?(current_user, :admin_milestone, @project) - if can?(current_user, :admin_milestone, @project)
= link_to edit_project_milestone_path(@project, @milestone), class: "btn grouped" do = link_to edit_project_milestone_path(@project, @milestone), class: "btn btn-grouped" do
%i.icon-edit %i.icon-edit
Edit Edit
- if @milestone.active? - if @milestone.active?
= link_to 'Close Milestone', project_milestone_path(@project, @milestone, milestone: {state_event: :close }), method: :put, class: "btn btn-remove grouped" = link_to 'Close Milestone', project_milestone_path(@project, @milestone, milestone: {state_event: :close }), method: :put, class: "btn btn-remove btn-grouped"
- else - else
= link_to 'Reopen Milestone', project_milestone_path(@project, @milestone, milestone: {state_event: :activate }), method: :put, class: "btn grouped" = link_to 'Reopen Milestone', project_milestone_path(@project, @milestone, milestone: {state_event: :activate }), method: :put, class: "btn btn-grouped"
- if @milestone.issues.any? && @milestone.can_be_closed? - if @milestone.issues.any? && @milestone.can_be_closed?
.alert.alert-success .alert.alert-success
...@@ -29,6 +23,14 @@ ...@@ -29,6 +23,14 @@
.issue-box .issue-box
.state
- if @milestone.closed?
%span.state-label.state-label-red Closed
- elsif @milestone.expired?
%span.state-label.state-label-red Expired
- else
%span.state-label.state-label-green Open
%h4.title %h4.title
= gfm escape_once(@milestone.title) = gfm escape_once(@milestone.title)
...@@ -63,10 +65,10 @@ ...@@ -63,10 +65,10 @@
%span.badge= @users.count %span.badge= @users.count
.pull-right .pull-right
= link_to new_project_issue_path(@project, issue: { milestone_id: @milestone.id }), class: "btn btn-small grouped", title: "New Issue" do = link_to new_project_issue_path(@project, issue: { milestone_id: @milestone.id }), class: "btn btn-small btn-grouped", title: "New Issue" do
%i.icon-plus %i.icon-plus
New Issue New Issue
= link_to 'Browse Issues', project_issues_path(@milestone.project, milestone_id: @milestone.id), class: "btn btn-small edit-milestone-link grouped" = link_to 'Browse Issues', project_issues_path(@milestone.project, milestone_id: @milestone.id), class: "btn btn-small edit-milestone-link btn-grouped"
.tab-content .tab-content
.tab-pane.active#tab-issues .tab-pane.active#tab-issues
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
.note-form-actions .note-form-actions
.buttons .buttons
= f.submit 'Add Comment', class: "btn comment-btn grouped js-comment-button" = f.submit 'Add Comment', class: "btn comment-btn btn-grouped js-comment-button"
= yield(:note_actions) = yield(:note_actions)
%a.btn.grouped.js-close-discussion-note-form Cancel %a.btn.grouped.js-close-discussion-note-form Cancel
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
%ul %ul
%li keep stable branches secured %li keep stable branches secured
%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: "underlined_link"} %p Read more about project permissions #{link_to "here", help_permissions_path, class: "underlined-link"}
- if can? current_user, :admin_project, @project - if can? current_user, :admin_project, @project
= form_for [@project, @protected_branch], html: { class: 'form-horizontal' } do |f| = form_for [@project, @protected_branch], html: { class: 'form-horizontal' } do |f|
......
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
= render partial: "projects/snippets/snippet", collection: @snippets = render partial: "projects/snippets/snippet", collection: @snippets
- if @snippets.empty? - if @snippets.empty?
%li %li
%h3.nothing_here_message Nothing here. .nothing-here-block Nothing here.
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
= paginate @tags, theme: 'gitlab' = paginate @tags, theme: 'gitlab'
- else - else
%h3.nothing_here_message .nothing-here-block
Repository has no tags yet. Repository has no tags yet.
%br %br
%small %small
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
- if can? current_user, :admin_team_member, @project - if can? current_user, :admin_team_member, @project
%span.pull-right %span.pull-right
= link_to new_project_team_member_path(@project), class: "btn btn-new grouped", title: "New project member" do = link_to new_project_team_member_path(@project), class: "btn btn-new btn-grouped", title: "New project member" do
New project member New project member
= link_to import_project_team_members_path(@project), class: "btn grouped", title: "Import members from another project" do = link_to import_project_team_members_path(@project), class: "btn btn-grouped", title: "Import members from another project" do
Import members Import members
%p.light %p.light
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
= f.text_area :note, size: 255, class: 'note_text js-note-text js-gfm-input turn-on' = f.text_area :note, size: 255, class: 'note_text js-note-text js-gfm-input turn-on'
.note-form-actions .note-form-actions
.buttons .buttons
= f.submit 'Add Comment', class: "btn comment-btn grouped js-comment-button" = f.submit 'Add Comment', class: "btn comment-btn btn-grouped js-comment-button"
.note-form-option .note-form-option
%a.choose-btn.btn.btn-small.js-choose-note-attachment-button %a.choose-btn.btn.btn-small.js-choose-note-attachment-button
......
%span.pull-right %span.pull-right
- if (@wiki && @wiki.persisted?) - if (@wiki && @wiki.persisted?)
= link_to history_project_wiki_path(@project, @wiki), class: "btn grouped" do = link_to history_project_wiki_path(@project, @wiki), class: "btn btn-grouped" do
Page History Page History
- if can?(current_user, :write_wiki, @project) - if can?(current_user, :write_wiki, @project)
= link_to edit_project_wiki_path(@project, @wiki), class: "btn grouped" do = link_to edit_project_wiki_path(@project, @wiki), class: "btn btn-grouped" do
%i.icon-edit %i.icon-edit
Edit Edit
...@@ -63,6 +63,6 @@ ...@@ -63,6 +63,6 @@
%i.icon-warning-sign %i.icon-warning-sign
Empty repository Empty repository
- unless @projects.present? - unless @projects.present?
%h3.nothing_here_message No public projects .nothing-here-block No public projects
= paginate @projects, theme: "gitlab" = paginate @projects, theme: "gitlab"
...@@ -11,5 +11,5 @@ ...@@ -11,5 +11,5 @@
= render 'projects/issues/issue', issue: issue = render 'projects/issues/issue', issue: issue
= paginate @issues, theme: "gitlab" = paginate @issues, theme: "gitlab"
- else - else
%p.nothing_here_message No issues to show .nothing-here-block No issues to show
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
= paginate @merge_requests, theme: "gitlab" = paginate @merge_requests, theme: "gitlab"
- else - else
%h3.nothing_here_message No merge requests to show .nothing-here-block No merge requests to show
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
= render 'shared/file_hljs', blob: @snippet = render 'shared/file_hljs', blob: @snippet
- else - else
.file-content.code .file-content.code
%p.nothing_here_message Empty file .nothing-here-block Empty file
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
= render partial: 'snippet', collection: @snippets = render partial: 'snippet', collection: @snippets
- if @snippets.empty? - if @snippets.empty?
%li %li
%h3.nothing_here_message Nothing here. .nothing-here-block Nothing here.
= paginate @snippets, theme: 'gitlab' = paginate @snippets, theme: 'gitlab'
%h3.page-title %h3.page-title
My Snippets My Snippets
.pull-right .pull-right
= link_to new_snippet_path, class: "btn btn-new grouped", title: "New Snippet" do = link_to new_snippet_path, class: "btn btn-new btn-grouped", title: "New Snippet" do
Add new snippet Add new snippet
= link_to snippets_path, class: "btn grouped" do = link_to snippets_path, class: "btn btn-grouped" do
Discover snippets Discover snippets
%p.light %p.light
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
Public snippets Public snippets
.pull-right .pull-right
= link_to new_snippet_path, class: "btn btn-new grouped", title: "New Snippet" do = link_to new_snippet_path, class: "btn btn-new btn-grouped", title: "New Snippet" do
Add new snippet Add new snippet
= link_to user_snippets_path(current_user), class: "btn grouped" do = link_to user_snippets_path(current_user), class: "btn btn-grouped" do
My snippets My snippets
%p.light %p.light
......
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