Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

updated relation to trans

  • Loading branch information...
luceos committed Dec 16, 2015
1 parent 3772f71 commit aada08d98f3c020ea77f12ae3ec91af5b2c910c6
Showing with 5 additions and 3 deletions.
  1. +1 −1 js/admin/dist/extension.js
  2. +1 −1 js/admin/src/components/GuardianPage.js
  3. +3 −1 locale/en.yml
@@ -43,7 +43,7 @@ System.register('hyn/guardian/components/GuardianPage', ['flarum/Component', 'fl

var Component, Button, humanTime, ItemList, avatar, username, icon, UserBio, AvatarEditor, listItems, GuardianPage;
function userItem(user) {
return m('tr', { dataId: user.id(), className: 'PermissionGrid-child' }, [m('th', [m('a', { href: app.forum.attribute('baseUrl') + '/u/' + user.username() }, user.username())]), m('td', humanTime(user.joinTime())), m('td', user.lastSeenTime() ? humanTime(user.lastSeenTime()) : app.translator.trans('hyn-guardian.generic.never')), m('td', user.isActivated() ? icon('check') : icon('close')), m('td', user.badges().toArray().length ? m('ul', { className: 'UserCard-badges badges' }, listItems(user.badges().toArray())) : ''), m('td', [m('button', { className: 'Button Button-Default' }, app.translator.trans('hyn-guardian.admin.grid.user.details'))])]);
return m('tr', { dataId: user.id(), className: 'PermissionGrid-child' }, [m('th', [m('a', { href: app.forum.attribute('baseUrl') + '/u/' + user.username() }, user.username())]), m('td', humanTime(user.joinTime())), m('td', user.lastSeenTime() ? humanTime(user.lastSeenTime()) : app.translator.trans('hyn-guardian.admin.user.states.never_visited')), m('td', user.isActivated() ? icon('check') : icon('close')), m('td', user.badges().toArray().length ? m('ul', { className: 'UserCard-badges badges' }, listItems(user.badges().toArray())) : ''), m('td', [m('button', { className: 'Button Button-Default' }, app.translator.trans('hyn-guardian.admin.grid.user.details'))])]);
}

return {
@@ -20,7 +20,7 @@ function userItem(user) {
m('a', {href: app.forum.attribute('baseUrl') + '/u/' + user.username()}, user.username())
]),
m('td', humanTime(user.joinTime())),
m('td', user.lastSeenTime() ? humanTime(user.lastSeenTime()) : app.translator.trans('hyn-guardian.generic.never')),
m('td', user.lastSeenTime() ? humanTime(user.lastSeenTime()) : app.translator.trans('hyn-guardian.admin.user.states.never_visited')),
m('td', user.isActivated() ? icon('check') : icon('close')),
m('td', user.badges().toArray().length ? m('ul', {className: 'UserCard-badges badges'}, listItems(user.badges().toArray())) : ''),
m('td', [
@@ -13,4 +13,6 @@ hyn-guardian:
last_seen_at: Last online
badges: Badges
activated: Active
details: Details
details: Details
states:
never_visited: => hyn-guardian.generic.never

0 comments on commit aada08d

Please sign in to comment.
You can’t perform that action at this time.