Commit 645f9604752ae258ab3f125c8fa98adf3b81c127
1 parent
1a917bc9
Exists in
master
and in
4 other branches
Few UI improvements
Showing
7 changed files
with
11 additions
and
10 deletions
Show diff stats
app/controllers/teams/application_controller.rb
app/views/dashboard/_teams.html.haml
app/views/layouts/_head_panel.html.haml
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | %ul.nav |
11 | 11 | %li |
12 | 12 | = link_to teams_path, title: "Teams of users", class: 'has_bottom_tooltip', 'data-original-title' => 'Teams list' do |
13 | - %i.icon-globe | |
13 | + %i.icon-group | |
14 | 14 | - if current_user.is_admin? |
15 | 15 | %li |
16 | 16 | = link_to admin_root_path, title: "Admin area", class: 'has_bottom_tooltip', 'data-original-title' => 'Admin area' do | ... | ... |
app/views/layouts/group.html.haml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | = render "layouts/head", title: "#{@group.name}" |
4 | 4 | %body{class: "#{app_theme} application"} |
5 | 5 | = render "layouts/flash" |
6 | - = render "layouts/head_panel", title: "#{@group.name}" | |
6 | + = render "layouts/head_panel", title: "group: #{@group.name}" | |
7 | 7 | .container |
8 | 8 | %ul.main_menu |
9 | 9 | = nav_link(path: 'groups#show', html_options: {class: 'home'}) do | ... | ... |
app/views/layouts/user_team.html.haml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | = render "layouts/head", title: "#{@team.name}" |
4 | 4 | %body{class: "#{app_theme} application"} |
5 | 5 | = render "layouts/flash" |
6 | - = render "layouts/head_panel", title: "#{@team.name}" | |
6 | + = render "layouts/head_panel", title: "team: #{@team.name}" | |
7 | 7 | .container |
8 | 8 | %ul.main_menu |
9 | 9 | = nav_link(path: 'teams#show', html_options: {class: 'home'}) do | ... | ... |
app/views/teams/_projects.html.haml
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | New Project |
11 | 11 | %ul.well-list |
12 | 12 | - if projects.blank? |
13 | - %p.nothing_here_message This groups has no projects yet | |
13 | + %p.nothing_here_message This team has no projects yet | |
14 | 14 | - projects.each do |project| |
15 | 15 | %li |
16 | 16 | = link_to project_path(project), class: dom_class(project) do | ... | ... |
app/views/teams/index.html.haml
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 | %th Projects |
21 | 21 | %th Members |
22 | 22 | %th Owner |
23 | - %th | |
23 | + %th.cred Danger Zone! | |
24 | 24 | |
25 | 25 | - @teams.each do |team| |
26 | 26 | %tr |
... | ... | @@ -30,9 +30,9 @@ |
30 | 30 | %td= link_to team.projects.count, team_projects_path(team) |
31 | 31 | %td= link_to team.members.count, team_members_path(team) |
32 | 32 | %td= link_to team.owner.name, team_member_path(team, team.owner) |
33 | - %td | |
33 | + %td.bgred | |
34 | 34 | - if current_user.can?(:manage_user_team, team) |
35 | + = link_to "Edit", edit_team_path(team), class: "btn small" | |
35 | 36 | - if current_user.can?(:admin_user_team, team) |
36 | - = link_to "Destroy", team_path(team), method: :delete, confirm: "You are shure?", class: "danger btn small right" | |
37 | + = link_to "Destroy", team_path(team), method: :delete, confirm: "You are shure?", class: "danger btn small" | |
37 | 38 | |
38 | - = link_to "Edit", edit_team_path(team), class: "btn small right" | ... | ... |