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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b2921918
Commit
b2921918
authored
Sep 22, 2020
by
Kushal Pandya
Committed by
Olena Horal-Koretska
Sep 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Test Case show HAML view
Adds HAML view for rendering Test Case page.
parent
1def732d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
8 deletions
+33
-8
app/assets/javascripts/init_issuable_sidebar.js
app/assets/javascripts/init_issuable_sidebar.js
+6
-2
app/assets/javascripts/notes/index.js
app/assets/javascripts/notes/index.js
+6
-2
app/assets/javascripts/pages/projects/issues/show.js
app/assets/javascripts/pages/projects/issues/show.js
+1
-1
app/assets/javascripts/sidebar/mount_sidebar.js
app/assets/javascripts/sidebar/mount_sidebar.js
+2
-2
ee/app/assets/javascripts/sidebar/sidebar_bundle.js
ee/app/assets/javascripts/sidebar/sidebar_bundle.js
+5
-1
ee/app/views/projects/issues/show.html.haml
ee/app/views/projects/issues/show.html.haml
+4
-0
ee/app/views/projects/quality/test_cases/_show.html.haml
ee/app/views/projects/quality/test_cases/_show.html.haml
+9
-0
No files found.
app/assets/javascripts/init_issuable_sidebar.js
View file @
b2921918
...
...
@@ -5,10 +5,14 @@ import LabelsSelect from './labels_select';
import
IssuableContext
from
'
./issuable_context
'
;
import
Sidebar
from
'
./right_sidebar
'
;
import
DueDateSelectors
from
'
./due_date_select
'
;
import
{
mountSidebarLabels
}
from
'
~/sidebar/mount_sidebar
'
;
import
{
mountSidebarLabels
,
getSidebarOptions
}
from
'
~/sidebar/mount_sidebar
'
;
export
default
()
=>
{
const
sidebarOptions
=
JSON
.
parse
(
document
.
querySelector
(
'
.js-sidebar-options
'
).
innerHTML
);
const
sidebarOptEl
=
document
.
querySelector
(
'
.js-sidebar-options
'
);
if
(
!
sidebarOptEl
)
return
;
const
sidebarOptions
=
getSidebarOptions
(
sidebarOptEl
);
new
MilestoneSelect
({
full_path
:
sidebarOptions
.
fullPath
,
...
...
app/assets/javascripts/notes/index.js
View file @
b2921918
...
...
@@ -5,15 +5,19 @@ import initSortDiscussions from './sort_discussions';
import
{
store
}
from
'
./stores
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
el
=
document
.
getElementById
(
'
js-vue-notes
'
);
if
(
!
el
)
return
;
// eslint-disable-next-line no-new
new
Vue
({
el
:
'
#js-vue-notes
'
,
el
,
components
:
{
notesApp
,
},
store
,
data
()
{
const
notesDataset
=
document
.
getElementById
(
'
js-vue-notes
'
)
.
dataset
;
const
notesDataset
=
el
.
dataset
;
const
parsedUserData
=
JSON
.
parse
(
notesDataset
.
currentUserData
);
const
noteableData
=
JSON
.
parse
(
notesDataset
.
noteableData
);
let
currentUserData
=
{};
...
...
app/assets/javascripts/pages/projects/issues/show.js
View file @
b2921918
...
...
@@ -18,7 +18,7 @@ export default function() {
if
(
issueType
===
'
incident
'
)
{
initIncidentApp
(
issuableData
);
}
else
{
}
else
if
(
issueType
===
'
issue
'
)
{
initIssueApp
(
issuableData
);
}
...
...
app/assets/javascripts/sidebar/mount_sidebar.js
View file @
b2921918
...
...
@@ -22,8 +22,8 @@ Vue.use(Translate);
Vue
.
use
(
VueApollo
);
Vue
.
use
(
Vuex
);
function
getSidebarOptions
()
{
return
JSON
.
parse
(
document
.
querySelector
(
'
.js-sidebar-options
'
)
.
innerHTML
);
function
getSidebarOptions
(
sidebarOptEl
=
document
.
querySelector
(
'
.js-sidebar-options
'
)
)
{
return
JSON
.
parse
(
sidebarOptEl
.
innerHTML
);
}
function
mountAssigneesComponent
(
mediator
)
{
...
...
ee/app/assets/javascripts/sidebar/sidebar_bundle.js
View file @
b2921918
...
...
@@ -3,7 +3,11 @@ import Mediator from './sidebar_mediator';
import
mountSidebar
from
'
./mount_sidebar
'
;
export
default
()
=>
{
const
mediator
=
new
Mediator
(
getSidebarOptions
());
const
sidebarOptEl
=
document
.
querySelector
(
'
.js-sidebar-options
'
);
if
(
!
sidebarOptEl
)
return
;
const
mediator
=
new
Mediator
(
getSidebarOptions
(
sidebarOptEl
));
mediator
.
fetch
();
mountSidebar
(
mediator
);
...
...
ee/app/views/projects/issues/show.html.haml
0 → 100644
View file @
b2921918
-
if
@issue
.
issue_type
==
'test_case'
=
render_if_exists
'projects/quality/test_cases/show'
-
else
=
render_ce
'projects/issues/show'
ee/app/views/projects/quality/test_cases/_show.html.haml
0 → 100644
View file @
b2921918
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
add_to_breadcrumbs
_
(
'Test Cases'
),
project_quality_test_cases_path
(
@project
)
-
breadcrumb_title
@issue
.
to_reference
-
page_title
"
#{
@issue
.
title
}
(
#{
@issue
.
to_reference
}
)"
,
_
(
'Test Cases'
)
-
page_description
@issue
.
description
-# haml-lint:disable InlineJavaScript
%script
#js-issuable-app-initial-data
{
type:
"application/json"
}=
issuable_initial_data
(
@issue
).
to_json
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