Use tw style for some buttons. Improved deploy key UI
This commit is contained in:
parent
6e5cd8e081
commit
982a4095c1
8 changed files with 46 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue