= link_to project_issue_path(issue.project, issue) do
- %p.row_title= truncate(issue.title, :length => 60)
+ %p.row_title= truncate(issue.title, :length => 100)
+++ /dev/null
-%aside.project-right
- - if content_for? :sidebar_all
- = render :sidebar_all
- - else
- - if content_for? :sidebar_top_block
- = yield :sidebar_top_block
- = render "widgets/project_member"
- = render "widgets/recent_projects"
+++ /dev/null
-%aside.projects
- - if current_user.can_create_project?
- .widget
- You can create up to
- = current_user.projects_limit
- projects. Click on link below to add a new one
- .link_holder
- = link_to new_project_path, :class => "" do
- New Project »
-
- - if current_user.is_admin?
- .widget
- You have administrator privilegies. You can configure application following this button:
- .link_holder
- = link_to admin_root_path, :class => "", :title => "Admin" do
- Visit Admin Area »
-
- - if current_user.projects.count > 0
- = render "widgets/recent_projects"
-
-
= link_to keys_path, :class => controller.controller_name == "keys" ? "current" : nil do
SSH Keys
.content
- .row
- .span12= yield
- .sidebar= render "layouts/projects_side"
+ = yield
.container
= render :partial => "layouts/project_menu"
.content
- - if @full_content
- = yield
- - else
- .row
- .span12= yield
- .sidebar= render "layouts/project_side_right"
+ = yield
→
%span.label= merge_request.target_branch
= link_to project_merge_request_path(merge_request.project, merge_request) do
- %p.row_title= truncate(merge_request.title, :length => 60)
+ %p.row_title= truncate(merge_request.title, :length => 100)
%li{ :class => "#{'active' if current_page?(project_path(@project)) }" }
= link_to project_path(@project), :class => "activities-tab tab" do
Show
- - if can? current_user, :admin_project, @project
- %li{ :class => "#{'active' if current_page?(edit_project_path(@project)) }" }
- = link_to edit_project_path(@project), :class => "stat-tab tab " do
- Edit
-
%li{ :class => " #{'active' if (controller.controller_name == "team_members") || current_page?(team_project_path(@project)) }" }
= link_to team_project_path(@project), :class => "team-tab tab" do
Team
Snippets
- if can? current_user, :admin_project, @project
- %li{:class => "#{'active' if controller.controller_name == "hooks" }"}
- = link_to project_hooks_path(@project) do
- %span
- Hooks
- %li{:class => "#{'active' if controller.controller_name == "deploy_keys"}"}
+ %li.right{:class => "#{'active' if controller.controller_name == "deploy_keys"}"}
= link_to project_deploy_keys_path(@project) do
%span
Deploy Keys
+ %li.right{:class => "#{'active' if controller.controller_name == "hooks" }"}
+ = link_to project_hooks_path(@project) do
+ %span
+ Hooks
+ %li.right{ :class => "#{'active' if current_page?(edit_project_path(@project)) }" }
+ = link_to edit_project_path(@project), :class => "stat-tab tab " do
+ Edit
+
-%ul.media-grid
+%ul.unstyled.ui-box
- @project.users_projects.each do |up|
= render(:partial => 'team_members/show', :locals => {:member => up})
= render "project_head"
%h3
= @project.name
- - if can? current_user, :download_code, @project
- = link_to "Download", archive_project_repository_path(@project), :class => "btn small right"
+ %span.right
+ - if can? current_user, :download_code, @project
+ = link_to "Download", archive_project_repository_path(@project), :class => "btn small padded"
+ - if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
+ = link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small padded" do
+ Merge Request
+ - if @project.issues_enabled && can?(current_user, :write_issue, @project)
+ = link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small" do
+ Issue
.back_link
= link_to projects_path do
← To projects list
- user = member.user
- allow_admin = can? current_user, :admin_project, @project
-%li{:id => dom_id(member), :class => "team_member_row"}
- = link_to project_team_member_path(@project, member), :title => user.name do
- = image_tag gravatar_icon(user.email, 60), :class => "thumbnail"
+%li{:id => dom_id(member), :class => "team_member_row wll"}
+ .left
+ = link_to project_team_member_path(@project, member), :title => user.name do
+ = image_tag gravatar_icon(user.email, 60), :class => "styled_image"
.row
.span8
%h4
= truncate(user.name, :lenght => 24)
+ %br
%small= truncate user.email, :lenght => 24
.span3
+++ /dev/null
-- member = @project.team_member_by_id(current_user.id)
-.widget
- .media-grid
- %li
- = 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
- Hey,
- #{truncate current_user.first_name, :lenght => 24}!
-
- %p
- - if @project.issues_enabled
- %span
- Assigned Issues:
- = current_user.assigned_issues.opened.count
- %br
- - if @project.merge_requests_enabled
- %span
- Assigned Requests:
- = current_user.assigned_merge_requests.opened.count
- %br
- %br
- - if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
- = link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small padded" do
- Merge Request
- - if @project.issues_enabled && can?(current_user, :write_issue, @project)
- = 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
- = "Member Card »"
-
-
-
--#- if can? current_user, :write_project, @project
- .widget
- - if @project.issues_enabled && @project.merge_requests_enabled
- .span3
- %p You have access to create new issue or merge request.
- %div
- = link_to new_project_issue_path(@project), :title => "New Issue", :class => "" do
- New Issue »
- %div
- = link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "" do
- New Merge Request »
-
+++ /dev/null
-- if current_user.projects.count > 0
- %div.widget
- %h4
- Recent Projects:
- %ul
- - current_user.projects.order("id DESC").limit(5).each do |project|
- %li
- = link_to project_path(project) do
- = project.name
- .link_holder
- = link_to "Projects » ", projects_path