show main menu in the project detail
parent
b56c245ff5
commit
1b3d3b00fa
|
@ -145,7 +145,6 @@ ProjectMenuDirective = ($log, $compile, $auth, $rootscope, $tgAuth, $location) -
|
||||||
renderMenuEntries = ($el, targetScope) ->
|
renderMenuEntries = ($el, targetScope) ->
|
||||||
container = $el.find(".menu-container")
|
container = $el.find(".menu-container")
|
||||||
sectionName = targetScope.section
|
sectionName = targetScope.section
|
||||||
|
|
||||||
dom = $compile(menuEntriesTemplate({user: $auth.getUser()}))(targetScope)
|
dom = $compile(menuEntriesTemplate({user: $auth.getUser()}))(targetScope)
|
||||||
dom.find("a.active").removeClass("active")
|
dom.find("a.active").removeClass("active")
|
||||||
dom.find("#nav-#{sectionName} > a").addClass("active")
|
dom.find("#nav-#{sectionName} > a").addClass("active")
|
||||||
|
|
|
@ -21,7 +21,6 @@ class ProjectController extends taiga.Controller
|
||||||
@.$inject = ["$scope", "$tgResources", "$tgRepo", "$routeParams", "$q"]
|
@.$inject = ["$scope", "$tgResources", "$tgRepo", "$routeParams", "$q"]
|
||||||
|
|
||||||
constructor: (@scope, @rs, @repo, @params, @q) ->
|
constructor: (@scope, @rs, @repo, @params, @q) ->
|
||||||
@scope.hideMenu = true
|
|
||||||
@.loadInitialData()
|
@.loadInitialData()
|
||||||
|
|
||||||
loadInitialData: ->
|
loadInitialData: ->
|
||||||
|
@ -39,12 +38,12 @@ class ProjectController extends taiga.Controller
|
||||||
|
|
||||||
loadProject: ->
|
loadProject: ->
|
||||||
return @rs.projects.get(@scope.projectId).then (project) =>
|
return @rs.projects.get(@scope.projectId).then (project) =>
|
||||||
@.project = project
|
@scope.project = project
|
||||||
return project
|
return project
|
||||||
|
|
||||||
loadProjectStats: ->
|
loadProjectStats: ->
|
||||||
return @rs.projects.stats(@scope.projectId).then (stats) =>
|
return @rs.projects.stats(@scope.projectId).then (stats) =>
|
||||||
@.stats = stats
|
@scope.stats = stats
|
||||||
return stats
|
return stats
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,24 +10,22 @@ block content
|
||||||
|
|
||||||
ul.home-project-info-list
|
ul.home-project-info-list
|
||||||
li
|
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
|
span.info-text projects points
|
||||||
li
|
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
|
span.info-text defined points
|
||||||
li
|
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
|
span.info-text assigned points
|
||||||
li
|
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
|
span.info-text closed points
|
||||||
|
|
||||||
|
|
||||||
p.description(tg-bo-html="ctrl.project.description")
|
p.description(tg-bo-html="project.description")
|
||||||
|
|
||||||
.home-project-bottom
|
.home-project-bottom
|
||||||
ul
|
ul
|
||||||
li(ng-repeat="member in ctrl.project.active_memberships")
|
li(ng-repeat="member in project.active_memberships")
|
||||||
img(src="{{member.photo}}")
|
img(src="{{member.photo}}")
|
||||||
|
|
||||||
a.button.button-blackish(href="", tg-nav="project-backlog:project=ctrl.project.slug") GO TO PROJECT
|
|
||||||
|
|
Loading…
Reference in New Issue