Commit a10ad7183e0edd04646b778954de610cf69bbff8

Authored by Dmitriy Zaporozhets
1 parent bd7359b5

Usability improved. Nothing to show messages for issues, MR

app/views/issues/index.html.haml
... ... @@ -33,7 +33,11 @@
33 33 = hidden_field_tag :status, params[:f]
34 34 = search_field_tag :issue_search, nil, { :placeholder => 'Search', :class => 'issue_search' }
35 35  
36   - %ul#issues-table.unstyled= render "issues"
  36 + %ul#issues-table.unstyled
  37 + = render "issues"
  38 + - if @issues.blank?
  39 + %li
  40 + %p.padded Nothing to show here
37 41  
38 42 :javascript
39 43 var href = $('.issue_search').parent().attr('action');
... ...
app/views/keys/index.html.haml
... ... @@ -2,7 +2,7 @@
2 2 SSH Keys
3 3 = link_to "Add new", new_key_path, :class => "btn small right"
4 4  
5   -%hr
  5 +%br
6 6  
7 7 %table#keys-table.zebra-striped.borders
8 8 - @keys.each do |key|
... ...
app/views/keys/show.html.haml
1   -%h3= @key.title
  1 +%h3
  2 + Public key:
  3 + = @key.title
  4 + %small
  5 + created at
  6 + = @key.created_at.stamp("Aug 21, 2011")
  7 +.back_link
  8 + = link_to keys_path do
  9 + ← To keys list
2 10 %hr
  11 +
3 12 %pre= @key.key
4 13 .actions
5 14 = link_to 'Remove', @key, :confirm => 'Are you sure?', :method => :delete, :class => "btn danger delete-key"
... ...
app/views/merge_requests/index.html.haml
... ... @@ -22,5 +22,10 @@
22 22 = link_to project_merge_requests_path(@project, :f => 1) do
23 23 All
24 24  
25   - %ul.unstyled= render @merge_requests
  25 + %ul.unstyled
  26 + = render @merge_requests
  27 + - if @merge_requests.blank?
  28 + %li
  29 + %p.padded Nothing to show here
  30 +
26 31  
... ...
app/views/profile/show.html.haml
1 1 .media-grid
2 2 = link_to "#" do
3 3 = image_tag gravatar_icon(@user.email, 90), :class => "thumbnail"
4   - %h3.media_h= @user.name
  4 + %h3.media_h
  5 + = @user.name
  6 + %br
  7 + %small
  8 + = @user.email
  9 +
  10 + .right
  11 + %p.alert-message.block-message You can change your avatar at gravatar.com
5 12  
6 13 %hr
7 14  
... ...