This repository was archived by the owner on May 16, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed
Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 4646 "RemoveModerator" : " Remove as Moderator" ,
4747 "About" : " About" ,
4848 "Version" : " Version %{version}" ,
49+ "ServerVersion" : " Server Version %{serverVersion}" ,
4950 "NoDescriptionAdded" : " No description added" ,
5051 "NoListings" : " No listings" ,
5152 "CoverPhoto" : " Cover Photo" ,
Original file line number Diff line number Diff line change 11< div class ="modal-child modal-childMain custCol-primary ">
22 < div class ="about-hero modal-hero-about color-secondary-darken custCol-secondary-darken ">
33 < div class ="modal-hero-icon "> </ div >
4- < p class ="width100 alignCenter custCol-text marginTop50 textOpacity75 fontSize14 "> < %= polyglot.t('Version', {version: ob.version}) %> </ p >
4+ < p class ="width100 alignCenter custCol-text marginTop50 row5 textOpacity75 fontSize14 "> < %= polyglot.t('Version', {version: ob.version}) %> </ p >
5+ < p class ="width100 alignCenter custCol-text marginTop10 textOpacity75 fontSize14 "> < %= polyglot.t('ServerVersion', {serverVersion: ob.serverVersion}) %> </ p >
56 </ div >
67 < div class ="aboutModal-accordion accordion ">
78 < div class ="accordion-window ">
4950 </ div >
5051 </ div >
5152 </ div >
52- </ div >
53+ </ div >
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ module.exports = baseModal.extend({
2020 throw new Error ( 'Please provide a version.' ) ;
2121 }
2222
23+ if ( ! this . options . serverVersion ) {
24+ throw new Error ( 'Please provide a server version.' ) ;
25+ }
26+
2327 this . _tab = this . options . initialTab ;
2428 } ,
2529
@@ -47,6 +51,7 @@ module.exports = baseModal.extend({
4751 loadTemplate ( './js/templates/aboutModal.html' , ( t ) => {
4852 this . $el . html ( t ( {
4953 version : this . options . version ,
54+ serverVersion : this . options . serverVersion ,
5055 tab : this . _tab
5156 } ) ) ;
5257
Original file line number Diff line number Diff line change @@ -394,7 +394,8 @@ module.exports = baseVw.extend({
394394
395395 if ( ! self . aboutModal ) {
396396 self . aboutModal = new AboutModal ( {
397- version : pjson . version
397+ version : pjson . version ,
398+ serverVersion : self . model . get ( 'version' ) ,
398399 } ) ;
399400 self . aboutModal . render ( ) ;
400401 self . registerChild ( self . aboutModal ) ;
You can’t perform that action at this time.
0 commit comments