projects link added. security specs added

This commit is contained in:
Dmitriy Zaporozhets 2012-01-19 09:27:23 +02:00
parent 15c4655527
commit 00d7bfda95
7 changed files with 55 additions and 31 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 B

View file

@ -5,6 +5,12 @@
- @keys.each do |key|
= render(:partial => 'show', :locals => {:key => key})
- if @keys.blank?
.notice_holder
%li Deploy Keys do not exist yet.
- if can? current_user, :admin_project, @project
%li You can add a new one by clicking on plus icon
:javascript
$('.delete-key').live('ajax:success', function() {
$(this).closest('.update-item').fadeOut(); });

View file

@ -5,8 +5,8 @@
%div.main_links
= link_to root_path, :class => "home", :title => "Home" do
= image_tag "Home-UI.PNG"
= link_to :back, :title => "Back" do
= image_tag "Arrow-Left-UI.PNG"
= link_to projects_path, :title => "Projects" do
= image_tag "Storage-UI.PNG"
- if project_layout
.project_name