File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ app.locals.sourceURL = config.sourceURL
197197app . locals . allowAnonymous = config . allowAnonymous
198198app . locals . allowAnonymousEdits = config . allowAnonymousEdits
199199//here 1 line below is mine
200- app . locals . allowSourceView = config . allowSourceView
200+ app . locals . allowVisibleSource = config . allowVisibleSource
201201app . locals . permission = config . permission
202202app . locals . allowPDFExport = config . allowPDFExport
203203app . locals . authProviders = {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ module.exports = {
3434 allowAnonymousViews : true ,
3535 allowFreeURL : false ,
3636 //my new feature below
37- allowSourceView : false ,
37+ allowVisibleSource : true ,
3838 forbiddenNoteIDs : [ 'robots.txt' , 'favicon.ico' , 'api' ] ,
3939 defaultPermission : 'editable' ,
4040 dbURL : '' ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ module.exports = {
3030 allowAnonymousViews : toBooleanConfig ( process . env . CMD_ALLOW_ANONYMOUS_VIEWS ) ,
3131 allowFreeURL : toBooleanConfig ( process . env . CMD_ALLOW_FREEURL ) ,
3232 //my feature is below
33- //allowSourceView : toBooleanConfig(process.env.CMD_ALLOW_SOURCE_VIEW ),
33+ allowVisibleSource : toBooleanConfig ( process . env . CMD_VISIBLE_SOURCE ) ,
3434 forbiddenNoteIDs : toArrayConfig ( process . env . CMD_FORBIDDEN_NOTE_IDS ) ,
3535 defaultPermission : process . env . CMD_DEFAULT_PERMISSION ,
3636 dbURL : process . env . CMD_DB_URL ,
Original file line number Diff line number Diff line change 8484 <div class =" collapse navbar-collapse" >
8585 <ul class =" nav navbar-nav navbar-form navbar-left" style =" padding :0 ;" >
8686 <div class =" btn-group" data-toggle =" buttons" >
87- <% if (allowSourceView ) { % >
87+ <% if (allowVisibleSource ) { % >
8888 < label class = " btn btn-default ui-edit" title= " <%= __('Edit') %> (Ctrl+Alt+E)" >
8989 < input type= " radio" name= " mode" autocomplete= " off" >< i class = " fa fa-pencil" >< / i>
9090 < / label>
You can’t perform that action at this time.
0 commit comments