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
35c09a36
Commit
35c09a36
authored
Jul 14, 2019
by
Nick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: hide non-guest actions
parent
8b712227
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
nav-header.vue
client/components/common/nav-header.vue
+4
-4
page.vue
client/themes/default/components/page.vue
+7
-5
No files found.
client/components/common/nav-header.vue
View file @
35c09a36
...
...
@@ -26,7 +26,7 @@
v-list-tile(avatar, href='/')
v-list-tile-avatar: v-icon(color='blue') home
v-list-tile-content
{{
$t
(
'common:header.home'
)
}}
v-list-tile(avatar, @click='pageNew')
v-list-tile(avatar, @click='pageNew'
, v-if='isAuthenticated'
)
v-list-tile-avatar: v-icon(color='green') add_box
v-list-tile-content
{{
$t
(
'common:header.newPage'
)
}}
template(v-if='path && path.length')
...
...
@@ -35,7 +35,7 @@
v-list-tile(avatar, @click='pageView', v-if='mode !== `view`')
v-list-tile-avatar: v-icon(color='indigo') subject
v-list-tile-content
{{
$t
(
'common:header.view'
)
}}
v-list-tile(avatar, @click='pageEdit', v-if='mode !== `edit`')
v-list-tile(avatar, @click='pageEdit', v-if='mode !== `edit`
&& isAuthenticated
')
v-list-tile-avatar: v-icon(color='indigo') edit
v-list-tile-content
{{
$t
(
'common:header.edit'
)
}}
v-list-tile(avatar, @click='pageHistory', v-if='mode !== `history`')
...
...
@@ -44,10 +44,10 @@
v-list-tile(avatar, @click='pageSource', v-if='mode !== `source`')
v-list-tile-avatar: v-icon(color='indigo') code
v-list-tile-content
{{
$t
(
'common:header.viewSource'
)
}}
v-list-tile(avatar, @click='pageMove')
v-list-tile(avatar, @click='pageMove'
, v-if='isAuthenticated'
)
v-list-tile-avatar: v-icon(color='grey lighten-2') forward
v-list-tile-content.grey--text.text--ligten-2
{{
$t
(
'common:header.move'
)
}}
v-list-tile(avatar, @click='pageDelete')
v-list-tile(avatar, @click='pageDelete'
, v-if='isAuthenticated'
)
v-list-tile-avatar: v-icon(color='red darken-2') delete
v-list-tile-content
{{
$t
(
'common:header.delete'
)
}}
v-divider.my-0
...
...
client/themes/default/components/page.vue
View file @
35c09a36
...
...
@@ -64,11 +64,12 @@
.caption.grey--text.text--lighten-1
{{
$t
(
'common:page.lastEditedBy'
)
}}
.body-2.grey--text(:class='darkMode ? `` : `text--darken-3`')
{{
authorName
}}
.caption.grey--text.text--darken-1
{{
updatedAt
|
moment
(
'calendar'
)
}}
v-spacer
v-tooltip(left)
v-btn.btn-animate-edit(icon, slot='activator', :href='"/e/" + locale + "/" + path')
v-icon(color='grey') edit
span
{{
$t
(
'common:page.editPage'
)
}}
template(v-if='isAuthenticated')
v-spacer
v-tooltip(left)
v-btn.btn-animate-edit(icon, slot='activator', :href='"/e/" + locale + "/" + path')
v-icon(color='grey') edit
span
{{
$t
(
'common:page.editPage'
)
}}
v-divider
template(v-if='toc.length')
v-list.grey.pb-3(dense, :class='darkMode ? `darken-3-d3` : `lighten-3`')
...
...
@@ -227,6 +228,7 @@ export default {
},
computed
:
{
darkMode
:
get
(
'site/dark'
),
isAuthenticated
:
get
(
'user/authenticated'
),
rating
:
{
get
()
{
return
3.5
...
...
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