Commit 78865a0c authored by Marin Jankovski's avatar Marin Jankovski

Move styling to css.

parent 9fd06180
...@@ -308,3 +308,10 @@ ul.nav.nav-projects-tabs { ...@@ -308,3 +308,10 @@ ul.nav.nav-projects-tabs {
display: none; display: none;
} }
} }
table.table.protected-branches-list tr.no-border {
th, td {
border: 0;
}
}
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
%h5 Already Protected: %h5 Already Protected:
%table.table.protected-branches-list %table.table.protected-branches-list
%thead %thead
%tr %tr.no-border
%th{style: "border:0;"} Branch %th Branch
%th{style: "border:0;"} Developers can push %th Developers can push
%th{style: "border:0;"} %th
%tbody %tbody
- @branches.each do |branch| - @branches.each do |branch|
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
.pull-right .pull-right
- if can? current_user, :admin_project, @project - if can? current_user, :admin_project, @project
= link_to 'Unprotect', [@project, branch], data: { confirm: 'Branch will be writable for developers. Are you sure?' }, method: :delete, class: "btn btn-remove btn-small" = link_to 'Unprotect', [@project, branch], data: { confirm: 'Branch will be writable for developers. Are you sure?' }, method: :delete, class: "btn btn-remove btn-small"
%tr %tr.no-border
%td{style: "border:0;"} %td
- if commit = branch.commit - if commit = branch.commit
= link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do = link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do
= commit.short_id = commit.short_id
...@@ -32,5 +32,5 @@ ...@@ -32,5 +32,5 @@
#{time_ago_with_tooltip(commit.committed_date)} #{time_ago_with_tooltip(commit.committed_date)}
- else - else
(branch was removed from repository) (branch was removed from repository)
%td{style: "border:0;"} %td
%td{style: "border:0;"} %td
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