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
Léo-Paul Géneau
gitlab-ce
Commits
8bcd508b
Commit
8bcd508b
authored
Dec 21, 2018
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lock version to issuable helpers
parent
1414cfae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
app/controllers/concerns/issuable_actions.rb
app/controllers/concerns/issuable_actions.rb
+2
-1
app/helpers/issuables_helper.rb
app/helpers/issuables_helper.rb
+1
-0
No files found.
app/controllers/concerns/issuable_actions.rb
View file @
8bcd508b
...
...
@@ -58,7 +58,8 @@ module IssuableActions
title_text:
issuable
.
title
,
description:
view_context
.
markdown_field
(
issuable
,
:description
),
description_text:
issuable
.
description
,
task_status:
issuable
.
task_status
task_status:
issuable
.
task_status
,
lock_version:
issuable
.
lock_version
}
if
issuable
.
edited?
...
...
app/helpers/issuables_helper.rb
View file @
8bcd508b
...
...
@@ -269,6 +269,7 @@ module IssuablesHelper
markdownPreviewPath:
preview_markdown_path
(
parent
),
markdownDocsPath:
help_page_path
(
'user/markdown'
),
markdownVersion:
issuable
.
cached_markdown_version
,
lockVersion:
issuable
.
lock_version
,
issuableTemplates:
issuable_templates
(
issuable
),
initialTitleHtml:
markdown_field
(
issuable
,
:title
),
initialTitleText:
issuable
.
title
,
...
...
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