mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
[feature] statistics: username link leads to admin edition
This commit is contained in:
parent
24f963645b
commit
3e24d328a9
@ -242,9 +242,7 @@ Application.Controllers.controller "StatisticsController", ["$scope", "$state",
|
||||
##
|
||||
$scope.getUserNameFromId = (id) ->
|
||||
name = $scope.members[id]
|
||||
if name
|
||||
return name
|
||||
else "ID "+id
|
||||
return (if name then name else "ID "+id)
|
||||
|
||||
|
||||
|
||||
|
@ -260,7 +260,7 @@
|
||||
<tbody>
|
||||
<tr ng-repeat="datum in data">
|
||||
<td>{{formatDate(datum._source.date)}}</td>
|
||||
<td><a href="" ui-sref="app.logged.members_show({id:datum._source.userId})">{{getUserNameFromId(datum._source.userId)}}</a></td>
|
||||
<td><a href="" ui-sref="app.admin.members_edit({id:datum._source.userId})">{{getUserNameFromId(datum._source.userId)}}</a></td>
|
||||
<td>{{formatSex(datum._source.gender)}}</td>
|
||||
<td><span ng-if="datum._source.age">{{datum._source.age}} {{ 'years_old' | translate }}</span><span ng-if="!datum._source.age" translate>{{ 'unknown' }}</span></td>
|
||||
<td>{{formatSubtype(datum._source.subType)}}</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user