Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
324067e2
Commit
324067e2
authored
Aug 09, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added correct permissions to the views
parent
27188763
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/boards/components/board_blank_state.js.es6
...ts/javascripts/boards/components/board_blank_state.js.es6
+1
-1
app/views/projects/boards/components/_board.html.haml
app/views/projects/boards/components/_board.html.haml
+2
-2
app/views/projects/boards/show.html.haml
app/views/projects/boards/show.html.haml
+1
-1
No files found.
app/assets/javascripts/boards/components/board_blank_state.js.es6
View file @
324067e2
...
...
@@ -13,7 +13,7 @@
methods: {
addDefaultLists: function () {
BoardsStore.removeBlankState();
_.each(this.predefinedLabels, (label, i) => {
BoardsStore.addList({
title: label.title,
...
...
app/views/projects/boards/components/_board.html.haml
View file @
324067e2
...
...
@@ -11,7 +11,7 @@
{{ list.title }}
%span
.pull-right
{
"v-if"
=>
"list.type !== 'blank'"
}
{{ list.issues.length }}
-
if
c
urrent_user
-
if
c
an?
(
current_user
,
:admin_list
,
@project
)
%board-delete
{
"inline-template"
=>
true
,
"v-if"
=>
"!isPreset"
,
":list"
=>
"list"
}
...
...
@@ -35,5 +35,5 @@
"v-show"
=>
"!loading"
,
":data-board"
=>
"list.id"
}
=
render
"projects/boards/components/card"
-
if
c
urrent_user
-
if
c
an?
(
current_user
,
:admin_list
,
@project
)
=
render
"projects/boards/components/blank_state"
app/views/projects/boards/show.html.haml
View file @
324067e2
...
...
@@ -12,7 +12,7 @@
.boards-list
#board-app
{
"v-cloak"
=>
true
,
":endpoint"
=>
"'#{namespace_project_board_path(@project.namespace, @project)}'"
,
":disabled"
=>
"#{
current_user.nil?
}"
,
":disabled"
=>
"#{
!can?(current_user, :admin_list, @project)
}"
,
":issue-link-base"
=>
"'#{namespace_project_issues_path(@project.namespace, @project)}'"
}
.boards-app-loading.text-center
{
"v-if"
=>
"loading"
}
=
icon
(
"spinner spin"
)
...
...
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