Merge branch 'master' into normalize_capitalization
This commit is contained in:
commit
562af7a6a2
30 changed files with 236 additions and 171 deletions
|
@ -1,8 +1,5 @@
|
|||
.btn {
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 26, color-stop(0.076, #f7f7f7), to(#d5d5d5));
|
||||
background-image: -webkit-linear-gradient(#f7f7f7 7.6%, #d5d5d5);
|
||||
background-image: -moz-linear-gradient(#f7f7f7 7.6%, #d5d5d5);
|
||||
background-image: -o-linear-gradient(#f7f7f7 7.6%, #d5d5d5);
|
||||
@include bg-gradient(#f7f7f7, #d5d5d5);
|
||||
border-color:#aaa;
|
||||
&:hover {
|
||||
@include bg-gray-gradient;
|
||||
|
@ -12,10 +9,8 @@
|
|||
|
||||
&.primary {
|
||||
background:#2a79A3;
|
||||
@include bg-gradient(#47A7b7, #2585b5);
|
||||
border-color: #2A79A3;
|
||||
background-image: -webkit-linear-gradient(#47A7b7 7.6%, #2585b5);
|
||||
background-image: -moz-linear-gradient(#47A7b7 7.6%, #2585b5);
|
||||
background-image: -o-linear-gradient(#47A7b7 7.6%, #2585b5);
|
||||
color:#fff;
|
||||
text-shadow: 0 1px 1px #268;
|
||||
&:hover {
|
||||
|
@ -30,16 +25,11 @@
|
|||
}
|
||||
|
||||
&.success {
|
||||
border-color: #4A4;
|
||||
background-image: -webkit-linear-gradient(#82D482 7.6%, #22B442);
|
||||
background-image: -moz-linear-gradient(#82D482 7.6%, #22B442);
|
||||
background-image: -o-linear-gradient(#82D482 7.6%, #22B442);
|
||||
color: #fff;
|
||||
text-shadow: 0 1px 1px #141;
|
||||
@extend .btn-success;
|
||||
|
||||
&:hover {
|
||||
background: #6C6;
|
||||
color: #fff;
|
||||
@extend .btn-success;
|
||||
background: #51a351;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
|
@ -62,10 +52,8 @@
|
|||
padding-right:30px;
|
||||
}
|
||||
|
||||
&.danger,
|
||||
&.btn-danger {
|
||||
color:#fff;
|
||||
background: #DA4E49;
|
||||
&.danger {
|
||||
@extend .btn-danger;
|
||||
border-color: #BD362F;
|
||||
|
||||
&:hover {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
*/
|
||||
.file_holder {
|
||||
border:1px solid #CCC;
|
||||
border:1px solid #BBB;
|
||||
margin-bottom:1em;
|
||||
@include solid_shade;
|
||||
|
||||
|
|
|
@ -56,6 +56,13 @@ $hover: #fdf5d9;
|
|||
border-radius: $radius;
|
||||
}
|
||||
|
||||
@mixin bg-gradient($from, $to) {
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($from), to($to));
|
||||
background-image: -webkit-linear-gradient($from, $to);
|
||||
background-image: -moz-linear-gradient($from, $to);
|
||||
background-image: -o-linear-gradient($from, $to);
|
||||
}
|
||||
|
||||
@mixin bg-gray-gradient {
|
||||
background:#eee;
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
|
||||
|
|
|
@ -22,7 +22,7 @@ header {
|
|||
*
|
||||
*/
|
||||
.app_logo {
|
||||
width:230px;
|
||||
width:200px;
|
||||
float:left;
|
||||
position:relative;
|
||||
top:-5px;
|
||||
|
@ -31,7 +31,7 @@ header {
|
|||
|
||||
h1 {
|
||||
padding-top: 5px;
|
||||
width:102px;
|
||||
width:90px;
|
||||
background: url('logo_dark.png') no-repeat 0px -3px;
|
||||
float:left;
|
||||
margin-left:5px;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Main Menu of Application
|
||||
*
|
||||
*/
|
||||
ul.main_menu {
|
||||
ul.main_menu {
|
||||
border-radius: 4px;
|
||||
margin: auto;
|
||||
margin:30px 0;
|
||||
|
@ -12,7 +12,7 @@ ul.main_menu {
|
|||
position:relative;
|
||||
overflow:hidden;
|
||||
@include shade;
|
||||
.count {
|
||||
.count {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
display: inline-block;
|
||||
|
@ -29,12 +29,12 @@ ul.main_menu {
|
|||
border-radius: 8px;
|
||||
-moz-border-radius: 8px;
|
||||
}
|
||||
.label {
|
||||
.label {
|
||||
background:$hover;
|
||||
text-shadow:none;
|
||||
color:$style_color;
|
||||
}
|
||||
li {
|
||||
li {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
display: table-cell;
|
||||
|
@ -43,7 +43,7 @@ ul.main_menu {
|
|||
border-left: 1px solid #EEE;
|
||||
border-bottom:2px solid #CFCFCF;
|
||||
|
||||
&:first-child{
|
||||
&:first-child{
|
||||
-webkit-border-top-left-radius: 4px;
|
||||
-webkit-border-bottom-left-radius: 4px;
|
||||
-moz-border-radius-topleft: 4px;
|
||||
|
@ -53,31 +53,31 @@ ul.main_menu {
|
|||
border-left: 0;
|
||||
}
|
||||
|
||||
&.current {
|
||||
&.current {
|
||||
background-color:#D5D5D5;
|
||||
border-bottom: 2px solid $style_color;
|
||||
border-bottom: 1px solid #AAA;
|
||||
border-right: 1px solid #BBB;
|
||||
border-left: 1px solid #BBB;
|
||||
border-radius: 0 0 1px 1px;
|
||||
&:first-child{
|
||||
&:first-child{
|
||||
border-bottom:none;
|
||||
border-left:none;
|
||||
}
|
||||
}
|
||||
|
||||
&.home {
|
||||
a {
|
||||
&.home {
|
||||
a {
|
||||
background: url(home_icon.PNG) no-repeat center center;
|
||||
text-indent:-9999px;
|
||||
min-width:20px;
|
||||
img {
|
||||
img {
|
||||
position:relative;
|
||||
top:4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
a {
|
||||
a {
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-weight:bold;
|
||||
|
|
|
@ -104,6 +104,8 @@ class Project < ActiveRecord::Base
|
|||
length: { within: 1..255 }
|
||||
|
||||
validates :owner, presence: true
|
||||
validates :issues_enabled, :wall_enabled, :merge_requests_enabled,
|
||||
:wiki_enabled, inclusion: { in: [true, false] }
|
||||
validate :check_limit
|
||||
validate :repo_name
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ module IssueCommonality
|
|||
validates :title,
|
||||
presence: true,
|
||||
length: { within: 0..255 }
|
||||
|
||||
validates :closed, inclusion: { in: [true, false] }
|
||||
|
||||
scope :opened, where(closed: false)
|
||||
scope :closed, where(closed: true)
|
||||
|
|
|
@ -11,8 +11,13 @@
|
|||
.input= f.text_field :title
|
||||
.clearfix
|
||||
= f.label :key
|
||||
.input= f.text_area :key, class: "xlarge"
|
||||
.actions
|
||||
= f.submit 'Save', class: "primary btn"
|
||||
= link_to "Cancel", project_deploy_keys_path(@project), class: "btn"
|
||||
.input
|
||||
= f.text_area :key, class: [:xxlarge, :thin_area]
|
||||
%p.hint
|
||||
Paste a machine public key here. Read more about how generate it
|
||||
= link_to "here", help_ssh_path
|
||||
|
||||
.actions
|
||||
= f.submit 'Save', class: "save-btn btn"
|
||||
= link_to "Cancel", project_deploy_keys_path(@project), class: "btn cancel-btn"
|
||||
|
||||
|
|
|
@ -1,11 +1,17 @@
|
|||
= render "repositories/head"
|
||||
- if can? current_user, :admin_project, @project
|
||||
.alert-message.block-message
|
||||
Deploy keys allow read-only access to repository.
|
||||
|
||||
%p.slead
|
||||
Deploy keys allow read-only access to repository. It matches perfectly for CI, staging or production servers.
|
||||
|
||||
- if can? current_user, :admin_project, @project
|
||||
= link_to new_project_deploy_key_path(@project), class: "btn small", title: "New Deploy Key" do
|
||||
Add Deploy Key
|
||||
|
||||
- if @keys.any?
|
||||
%table
|
||||
%thead
|
||||
%tr
|
||||
%th Keys
|
||||
%th
|
||||
%th
|
||||
- @keys.each do |key|
|
||||
= render(partial: 'show', locals: {key: key})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render "repositories/head"
|
||||
|
||||
%h3 New Deploy key
|
||||
%h3.page_title New Deploy key
|
||||
%hr
|
||||
|
||||
= render 'form'
|
||||
|
|
|
@ -1,7 +1,14 @@
|
|||
= render "repositories/head"
|
||||
%h3= @key.title
|
||||
%h3.page_title
|
||||
Deploy key:
|
||||
= @key.title
|
||||
%small
|
||||
created at
|
||||
= @key.created_at.stamp("Aug 21, 2011")
|
||||
.back_link
|
||||
= link_to project_deploy_keys_path(@project) do
|
||||
← To keys list
|
||||
%hr
|
||||
%pre= @key.key
|
||||
.actions
|
||||
.right
|
||||
= link_to 'Remove', project_deploy_key_path(@key.project, @key), confirm: 'Are you sure?', method: :delete, class: "danger btn delete-key"
|
||||
.clear
|
||||
|
|
|
@ -10,5 +10,5 @@
|
|||
%hr
|
||||
|
||||
%pre= @key.key
|
||||
.actions
|
||||
.right
|
||||
= link_to 'Remove', @key, confirm: 'Are you sure?', method: :delete, class: "btn danger delete-key"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
.team_member_show
|
||||
- if can? current_user, :admin_project, @project
|
||||
= link_to 'Remove from team', project_team_member_path(project_id: @project, id: @team_member.id), confirm: 'Are you sure?', method: :delete, class: "right btn btn-danger"
|
||||
= link_to 'Remove from team', project_team_member_path(project_id: @project, id: @team_member.id), confirm: 'Are you sure?', method: :delete, class: "right btn danger"
|
||||
.profile_avatar_holder
|
||||
= image_tag gravatar_icon(user.email, 60), class: "borders"
|
||||
%h3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue