Commit a10ad718 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Usability improved. Nothing to show messages for issues, MR

parent bd7359b5
...@@ -33,7 +33,11 @@ ...@@ -33,7 +33,11 @@
= hidden_field_tag :status, params[:f] = hidden_field_tag :status, params[:f]
= search_field_tag :issue_search, nil, { :placeholder => 'Search', :class => 'issue_search' } = search_field_tag :issue_search, nil, { :placeholder => 'Search', :class => 'issue_search' }
%ul#issues-table.unstyled= render "issues" %ul#issues-table.unstyled
= render "issues"
- if @issues.blank?
%li
%p.padded Nothing to show here
:javascript :javascript
var href = $('.issue_search').parent().attr('action'); var href = $('.issue_search').parent().attr('action');
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
SSH Keys SSH Keys
= link_to "Add new", new_key_path, :class => "btn small right" = link_to "Add new", new_key_path, :class => "btn small right"
%hr %br
%table#keys-table.zebra-striped.borders %table#keys-table.zebra-striped.borders
- @keys.each do |key| - @keys.each do |key|
......
%h3= @key.title %h3
Public key:
= @key.title
%small
created at
= @key.created_at.stamp("Aug 21, 2011")
.back_link
= link_to keys_path do
← To keys list
%hr %hr
%pre= @key.key %pre= @key.key
.actions .actions
= link_to 'Remove', @key, :confirm => 'Are you sure?', :method => :delete, :class => "btn danger delete-key" = link_to 'Remove', @key, :confirm => 'Are you sure?', :method => :delete, :class => "btn danger delete-key"
......
...@@ -22,5 +22,10 @@ ...@@ -22,5 +22,10 @@
= link_to project_merge_requests_path(@project, :f => 1) do = link_to project_merge_requests_path(@project, :f => 1) do
All All
%ul.unstyled= render @merge_requests %ul.unstyled
= render @merge_requests
- if @merge_requests.blank?
%li
%p.padded Nothing to show here
.media-grid .media-grid
= link_to "#" do = link_to "#" do
= image_tag gravatar_icon(@user.email, 90), :class => "thumbnail" = image_tag gravatar_icon(@user.email, 90), :class => "thumbnail"
%h3.media_h= @user.name %h3.media_h
= @user.name
%br
%small
= @user.email
.right
%p.alert-message.block-message You can change your avatar at gravatar.com
%hr %hr
......
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