Usability & design improvements

This commit is contained in:
Dmitriy Zaporozhets 2012-02-18 14:12:48 +02:00
parent 9a24ccdea1
commit 94db8a1c33
21 changed files with 190 additions and 89 deletions

View file

@ -3,20 +3,31 @@
.media-grid
%li
= link_to project_team_member_path(@project, member), :title => current_user.name do
= image_tag gravatar_icon(current_user.email, 90), :class => "thumbnail"
.row
.span4
%h4
= truncate(current_user.name, :lenght => 24)
- if @project.owner == current_user
%span.label Project Owner
= image_tag gravatar_icon(current_user.email, 60), :class => "thumbnail", :width => 60
%h4
Hi,
= truncate current_user.first_name, :lenght => 24
!
%p
- if @project.issues_enabled
Assigned issues:
= current_user.assigned_issues.count
%br
- if @project.merge_requests_enabled
Assigned merge request:
= current_user.assigned_merge_requests.count
%br
Your merge requests:
= current_user.assigned_merge_requests.count
.link_holder
= link_to project_team_member_path(@project, member), :title => current_user.name do
= "Access: #{member.project_access_human} »"
.span3
%span.label= member.project_access_human
- if can? current_user, :write_project, @project
-#- if can? current_user, :write_project, @project
.widget
- if @project.issues_enabled && @project.merge_requests_enabled
%hr
.span3
%p You have access to create new issue or merge request.
%div

View file

@ -7,4 +7,5 @@
%li
= link_to project_path(project) do
= project.name
= link_to "More » ", projects_path
.link_holder
= link_to "Projects » ", projects_path