Commit 09039323 authored by gitlabhq's avatar gitlabhq

updated

parent d4052923
...@@ -2,6 +2,7 @@ require "base64" ...@@ -2,6 +2,7 @@ require "base64"
class CommitsController < ApplicationController class CommitsController < ApplicationController
before_filter :project before_filter :project
layout "project"
# Authorize # Authorize
before_filter :add_project_abilities before_filter :add_project_abilities
......
class SnippetsController < ApplicationController class SnippetsController < ApplicationController
before_filter :authenticate_user! before_filter :authenticate_user!
before_filter :project before_filter :project
layout "project"
# Authorize # Authorize
before_filter :add_project_abilities before_filter :add_project_abilities
......
class TeamMembersController < ApplicationController class TeamMembersController < ApplicationController
before_filter :project before_filter :project
layout "project"
# Authorize # Authorize
before_filter :add_project_abilities before_filter :add_project_abilities
......
...@@ -14,32 +14,32 @@ ...@@ -14,32 +14,32 @@
#container #container
= render :partial => "layouts/flash" = render :partial => "layouts/flash"
= render :partial => "layouts/head_panel" = render :partial => "layouts/head_panel"
= render :partial => "layouts/page_title"
.project-container .project-container
.project-sidebar.grid_1 .project-sidebar
%input.git-url.text{:id => "", :name => "", :readonly => "", :type => "text", :value => @project.url_to_repo} .fixed
%aside %input.git-url.text{:id => "", :name => "", :readonly => "", :type => "text", :value => @project.url_to_repo}
= link_to image_tag("home.png", :width => 20), project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil %aside
= link_to "Tree", tree_project_path(@project), :class => current_page?(:controller => "projects", :action => "tree", :id => @project) ? "current" : nil = link_to image_tag("home.png", :width => 20), project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil
= link_to "Commits", project_commits_path(@project), :class => current_page?(:controller => "commits", :action => "index", :project_id => @project) ? "current" : nil = link_to "Tree", tree_project_path(@project), :class => current_page?(:controller => "projects", :action => "tree", :id => @project) ? "current" : nil
= link_to team_project_path(@project), :class => (current_page?(:controller => "projects", :action => "team", :id => @project) || controller.controller_name == "team_members") ? "current" : nil do = link_to "Commits", project_commits_path(@project), :class => current_page?(:controller => "commits", :action => "index", :project_id => @project) ? "current" : nil
Team = link_to team_project_path(@project), :class => (current_page?(:controller => "projects", :action => "team", :id => @project) || controller.controller_name == "team_members") ? "current" : nil do
- if @project.users_projects.count > 0 Team
%span{ :class => "top_menu_count" }= @project.users_projects.count - if @project.users_projects.count > 0
= link_to project_issues_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do %span{ :class => "top_menu_count" }= @project.users_projects.count
Issues = link_to project_issues_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do
- if @project.issues.opened.count > 0 Issues
%span{ :class => "top_menu_count" }= @project.issues.opened.count - if @project.issues.opened.count > 0
= link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do %span{ :class => "top_menu_count" }= @project.issues.opened.count
Wall = link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do
- if @project.common_notes.count > 0 Wall
%span{ :class => "top_menu_count" }= @project.common_notes.count - if @project.common_notes.count > 0
= link_to project_snippets_path(@project), :class => (controller.controller_name == "snippets") ? "current" : nil do %span{ :class => "top_menu_count" }= @project.common_notes.count
Snippets = link_to project_snippets_path(@project), :class => (controller.controller_name == "snippets") ? "current" : nil do
- if @project.snippets.count > 0 Snippets
%span{ :class => "top_menu_count" }= @project.snippets.non_expired.count - if @project.snippets.count > 0
- if @commit %span{ :class => "top_menu_count" }= @project.snippets.non_expired.count
= link_to truncate(commit_name(@project,@commit), :length => 15), project_commit_path(@project, :id => @commit.id), :class => current_page?(:controller => "commits", :action => "show", :project_id => @project, :id => @commit.id) ? "current" : nil - if @commit
= link_to truncate(commit_name(@project,@commit), :length => 15), project_commit_path(@project, :id => @commit.id), :class => current_page?(:controller => "commits", :action => "show", :project_id => @project, :id => @commit.id) ? "current" : nil
.project-content .project-content
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment