mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-23 20:39:10 +00:00
Frontend
This commit is contained in:
21
src/frontend/js/app/profile/main.js
Normal file
21
src/frontend/js/app/profile/main.js
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
const Mn = require('backbone.marionette');
|
||||
const Cache = require('../cache');
|
||||
const template = require('./main.ejs');
|
||||
|
||||
module.exports = Mn.View.extend({
|
||||
template: template,
|
||||
id: 'profile',
|
||||
|
||||
templateContext: {
|
||||
getUserField: function (field, default_val) {
|
||||
return Cache.User.get(field) || default_val;
|
||||
}
|
||||
},
|
||||
|
||||
initialize: function () {
|
||||
this.model = Cache.User;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user