Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
4b33a83d
Commit
4b33a83d
authored
Aug 27, 2017
by
Bamieh
Committed by
Nicolas Giard
Aug 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
viewSource theme config
parent
dca23726
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
config.sample.yml
config.sample.yml
+1
-0
data.yml
server/app/data.yml
+1
-0
config.js
server/libs/config.js
+1
-0
view.pug
server/views/pages/view.pug
+4
-3
No files found.
config.sample.yml
View file @
4b33a83d
...
...
@@ -162,6 +162,7 @@ externalLogging:
theme
:
primary
:
indigo
alt
:
blue-grey
viewSource
:
"
all"
footer
:
blue-grey
code
:
dark
:
true
...
...
server/app/data.yml
View file @
4b33a83d
...
...
@@ -61,6 +61,7 @@ defaults:
primary
:
indigo
alt
:
blue-grey
footer
:
blue-grey
viewSource
:
"
none"
code
:
dark
:
true
colorize
:
true
...
...
server/libs/config.js
View file @
4b33a83d
...
...
@@ -28,6 +28,7 @@ module.exports = (confPaths) => {
fs
.
readFileSync
(
confPaths
.
config
,
'utf8'
)
)
)
appdata
=
yaml
.
safeLoad
(
fs
.
readFileSync
(
confPaths
.
data
,
'utf8'
))
appdata
.
regex
=
require
(
confPaths
.
dataRegex
)
}
catch
(
ex
)
{
...
...
server/views/pages/view.pug
View file @
4b33a83d
...
...
@@ -15,9 +15,10 @@ block rootNavRight
a.button.is-outlined(v-on:click='$store.dispatch("modalMovePage/open")')
i.nc-icon-outline.arrows-1_shuffle-98
span= t('nav.move')
a.button.is-outlined(href='/source/' + pageData.meta.path)
i.nc-icon-outline.education_paper
span= t('nav.source')
if appconfig.theme.viewSource == "all" || rights.write && appconfig.theme.viewSource == "write"
a.button.is-outlined(href='/source/' + pageData.meta.path)
i.nc-icon-outline.education_paper
span= t('nav.source')
//-a.button.is-outlined(href='/hist/' + pageData.meta.path)
i.nc-icon-outline.ui-2_time
span= t('nav.history')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment