Commit 1c88fbb3915e6d2efcac5cc2edb8d480f1112c75

Authored by Dmitriy Zaporozhets
1 parent 6743ecec

show new group, new team links in profile

Showing 1 changed file with 14 additions and 1 deletions   Show diff stats
app/views/profiles/show.html.haml
... ... @@ -47,6 +47,18 @@
47 47 %p
48 48 You can login through #{@user.provider.titleize}!
49 49 = link_to "click here to change", account_profile_path
  50 + - if current_user.can_create_group?
  51 + %li
  52 + %p
  53 + Need a group for several dependent projects?
  54 + = link_to new_group_path, class: "btn very_small" do
  55 + Create a group
  56 + - if current_user.can_create_team?
  57 + %li
  58 + %p
  59 + Want to share a team between projects?
  60 + = link_to new_team_path, class: "btn very_small" do
  61 + Create a team
50 62  
51 63 .row
52 64 .span7
... ... @@ -79,7 +91,8 @@
79 91 %fieldset
80 92 %legend
81 93 SSH public keys:
82   - %strong.right= link_to current_user.keys.count, keys_path
  94 + %span.right
  95 + = link_to pluralize(current_user.keys.count, 'key'), keys_path
83 96 .padded
84 97 = link_to "Add Public Key", new_key_path, class: "btn small"
85 98  
... ...