Project sidebar improved

This commit is contained in:
Dmitriy Zaporozhets 2012-02-21 22:46:34 +02:00
parent 1c22d4f50f
commit 9803e0885e
3 changed files with 25 additions and 9 deletions

View file

@ -52,7 +52,7 @@ class Admin::ProjectsController < ApplicationController
def update
@admin_project = Project.find_by_code(params[:id])
owner_id = params[:project][:owner_id]
owner_id = params[:project].delete(:owner_id)
if owner_id
@admin_project.owner = User.find(owner_id)

View file

@ -14,9 +14,9 @@
= text_field_tag :project_clone, @project.url_to_repo, :class => "xlarge one_click_select git_clone_url"
= simple_format @project.description
.ui-box
%h5.cgray Recent Activity
.content_list= render "feed"
- unless @activities.blank?
.ui-box
%h5.cgray Recent Activity
.content_list= render "feed"

View file

@ -5,9 +5,9 @@
= link_to project_team_member_path(@project, member), :title => current_user.name do
= image_tag gravatar_icon(current_user.email, 60), :class => "thumbnail", :width => 60
%h4
Hi,
= truncate current_user.first_name, :lenght => 24
!
Hey,
#{truncate current_user.first_name, :lenght => 24}!
%p
- if @project.issues_enabled
Assigned issues:
@ -19,9 +19,25 @@
%br
Your merge requests:
= current_user.assigned_merge_requests.opened.count
%br
%br
- if @project.merge_requests_enabled
= link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small" do
Merge Request
- if @project.issues_enabled
= link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small" do
Issue
%hr
%p
Your access level in this project is
%code #{member.project_access_human}
%br
Visit member card for more information
.link_holder
= link_to project_team_member_path(@project, member), :title => current_user.name do
= "Access: #{member.project_access_human} »"
= "Member Card »"