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
f76f569b
Commit
f76f569b
authored
8 years ago
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved data attribute values into helper method
parent
53b3c62e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
app/helpers/boards_helper.rb
app/helpers/boards_helper.rb
+12
-0
app/views/projects/boards/index.html.haml
app/views/projects/boards/index.html.haml
+1
-5
app/views/projects/boards/show.html.haml
app/views/projects/boards/show.html.haml
+1
-5
No files found.
app/helpers/boards_helper.rb
0 → 100644
View file @
f76f569b
module
BoardsHelper
def
board_data
board
=
@board
||
@boards
.
first
{
endpoint:
namespace_project_boards_path
(
@project
.
namespace
,
@project
),
board_id:
board
.
id
,
disabled:
!
can?
(
current_user
,
:admin_list
,
@project
),
issue_link_base:
namespace_project_issues_path
(
@project
.
namespace
,
@project
)
}
end
end
This diff is collapsed.
Click to expand it.
app/views/projects/boards/index.html.haml
View file @
f76f569b
...
...
@@ -10,11 +10,7 @@
=
render
'shared/issuable/filter'
,
type: :boards
.boards-list
#board-app
{
"v-cloak"
=>
true
,
"data-endpoint"
=>
"#{namespace_project_boards_path(@project.namespace, @project)}"
,
"data-board-id"
=>
"#{@boards.first.id}"
,
"data-disabled"
=>
"#{!can?(current_user, :admin_list, @project)}"
,
"data-issue-link-base"
=>
"#{namespace_project_issues_path(@project.namespace, @project)}"
}
.boards-list
#board-app
{
"v-cloak"
=>
true
,
data:
board_data
}
.boards-app-loading.text-center
{
"v-if"
=>
"loading"
}
=
icon
(
"spinner spin"
)
=
render
"projects/boards/components/board"
This diff is collapsed.
Click to expand it.
app/views/projects/boards/show.html.haml
View file @
f76f569b
...
...
@@ -10,11 +10,7 @@
=
render
'shared/issuable/filter'
,
type: :boards
.boards-list
#board-app
{
"v-cloak"
=>
true
,
"data-endpoint"
=>
"#{namespace_project_boards_path(@project.namespace, @project)}"
,
"data-board-id"
=>
"#{@board.id}"
,
"data-disabled"
=>
"#{!can?(current_user, :admin_list, @project)}"
,
"data-issue-link-base"
=>
"#{namespace_project_issues_path(@project.namespace, @project)}"
}
.boards-list
#board-app
{
"v-cloak"
=>
true
,
data:
board_data
}
.boards-app-loading.text-center
{
"v-if"
=>
"loading"
}
=
icon
(
"spinner spin"
)
=
render
"projects/boards/components/board"
This diff is collapsed.
Click to expand it.
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