File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ app.locals.sourceURL = config.sourceURL
197
197
app . locals . allowAnonymous = config . allowAnonymous
198
198
app . locals . allowAnonymousEdits = config . allowAnonymousEdits
199
199
//here 1 line below is mine
200
- app . locals . allowSourceView = config . allowSourceView
200
+ app . locals . allowVisibleSource = config . allowVisibleSource
201
201
app . locals . permission = config . permission
202
202
app . locals . allowPDFExport = config . allowPDFExport
203
203
app . locals . authProviders = {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ module.exports = {
34
34
allowAnonymousViews : true ,
35
35
allowFreeURL : false ,
36
36
//my new feature below
37
- allowSourceView : false ,
37
+ allowVisibleSource : true ,
38
38
forbiddenNoteIDs : [ 'robots.txt' , 'favicon.ico' , 'api' ] ,
39
39
defaultPermission : 'editable' ,
40
40
dbURL : '' ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ module.exports = {
30
30
allowAnonymousViews : toBooleanConfig ( process . env . CMD_ALLOW_ANONYMOUS_VIEWS ) ,
31
31
allowFreeURL : toBooleanConfig ( process . env . CMD_ALLOW_FREEURL ) ,
32
32
//my feature is below
33
- //allowSourceView : toBooleanConfig(process.env.CMD_ALLOW_SOURCE_VIEW ),
33
+ allowVisibleSource : toBooleanConfig ( process . env . CMD_VISIBLE_SOURCE ) ,
34
34
forbiddenNoteIDs : toArrayConfig ( process . env . CMD_FORBIDDEN_NOTE_IDS ) ,
35
35
defaultPermission : process . env . CMD_DEFAULT_PERMISSION ,
36
36
dbURL : process . env . CMD_DB_URL ,
Original file line number Diff line number Diff line change 84
84
<div class =" collapse navbar-collapse" >
85
85
<ul class =" nav navbar-nav navbar-form navbar-left" style =" padding :0 ;" >
86
86
<div class =" btn-group" data-toggle =" buttons" >
87
- <% if (allowSourceView ) { % >
87
+ <% if (allowVisibleSource ) { % >
88
88
< label class = " btn btn-default ui-edit" title= " <%= __('Edit') %> (Ctrl+Alt+E)" >
89
89
< input type= " radio" name= " mode" autocomplete= " off" >< i class = " fa fa-pencil" >< / i>
90
90
< / label>
You can’t perform that action at this time.
0 commit comments