show main menu in the project detail

stable
Juanfran 2014-07-30 14:12:47 +02:00
parent b56c245ff5
commit 1b3d3b00fa
3 changed files with 8 additions and 12 deletions

View File

@ -145,7 +145,6 @@ ProjectMenuDirective = ($log, $compile, $auth, $rootscope, $tgAuth, $location) -
renderMenuEntries = ($el, targetScope) ->
container = $el.find(".menu-container")
sectionName = targetScope.section
dom = $compile(menuEntriesTemplate({user: $auth.getUser()}))(targetScope)
dom.find("a.active").removeClass("active")
dom.find("#nav-#{sectionName} > a").addClass("active")

View File

@ -21,7 +21,6 @@ class ProjectController extends taiga.Controller
@.$inject = ["$scope", "$tgResources", "$tgRepo", "$routeParams", "$q"]
constructor: (@scope, @rs, @repo, @params, @q) ->
@scope.hideMenu = true
@.loadInitialData()
loadInitialData: ->
@ -39,12 +38,12 @@ class ProjectController extends taiga.Controller
loadProject: ->
return @rs.projects.get(@scope.projectId).then (project) =>
@.project = project
@scope.project = project
return project
loadProjectStats: ->
return @rs.projects.stats(@scope.projectId).then (stats) =>
@.stats = stats
@scope.stats = stats
return stats

View File

@ -10,24 +10,22 @@ block content
ul.home-project-info-list
li
span.info-num(tg-bo-html="ctrl.stats.total_points")
span.info-num(tg-bo-html="stats.total_points")
span.info-text projects points
li
span.info-num(tg-bo-html="ctrl.stats.defined_points")
span.info-num(tg-bo-html="stats.defined_points")
span.info-text defined points
li
span.info-num(tg-bo-html="ctrl.stats.assigned_points")
span.info-num(tg-bo-html="stats.assigned_points")
span.info-text assigned points
li
span.info-num(tg-bo-html="ctrl.stats.closed_points")
span.info-num(tg-bo-html="stats.closed_points")
span.info-text closed points
p.description(tg-bo-html="ctrl.project.description")
p.description(tg-bo-html="project.description")
.home-project-bottom
ul
li(ng-repeat="member in ctrl.project.active_memberships")
li(ng-repeat="member in project.active_memberships")
img(src="{{member.photo}}")
a.button.button-blackish(href="", tg-nav="project-backlog:project=ctrl.project.slug") GO TO PROJECT