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
1c5fc6c6
Commit
1c5fc6c6
authored
Jun 04, 2019
by
Mark Florian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove repetition from template
parent
8afdc2c9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
20 deletions
+19
-20
ee/app/assets/javascripts/dependencies/components/dependencies_table.vue
...avascripts/dependencies/components/dependencies_table.vue
+19
-11
ee/spec/frontend/dependencies/components/__snapshots__/dependencies_table_spec.js.snap
.../components/__snapshots__/dependencies_table_spec.js.snap
+0
-9
No files found.
ee/app/assets/javascripts/dependencies/components/dependencies_table.vue
View file @
1c5fc6c6
<
script
>
import
{
s__
}
from
'
~/locale
'
;
import
DependenciesTableRow
from
'
./dependencies_table_row.vue
'
;
export
default
{
...
...
@@ -16,23 +17,30 @@ export default {
required
:
true
,
},
},
data
()
{
return
{
tableSections
:
[
{
className
:
'
section-20
'
,
label
:
s__
(
'
Dependencies|Component
'
)
},
{
className
:
'
section-15
'
,
label
:
s__
(
'
Dependencies|Version
'
)
},
{
className
:
'
section-20
'
,
label
:
s__
(
'
Dependencies|Packager
'
)
},
{
className
:
'
flex-grow-1
'
,
label
:
s__
(
'
Dependencies|Location
'
)
},
],
};
},
};
</
script
>
<
template
>
<div>
<div
class=
"gl-responsive-table-row table-row-header text-2 bg-secondary-50 px-2"
role=
"row"
>
<div
class=
"table-section section-20"
role=
"rowheader"
>
{{
s__
(
'
Dependencies|Component
'
)
}}
</div>
<div
class=
"table-section section-15"
role=
"rowheader"
>
{{
s__
(
'
Dependencies|Version
'
)
}}
</div>
<div
class=
"table-section section-20"
role=
"rowheader"
>
{{
s__
(
'
Dependencies|Packager
'
)
}}
</div>
<div
class=
"table-section flex-grow-1"
role=
"rowheader"
>
{{
s__
(
'
Dependencies|Location
'
)
}}
<div
v-for=
"(section, index) in tableSections"
:key=
"index"
class=
"table-section"
:class=
"section.className"
role=
"rowheader"
>
{{
section
.
label
}}
</div>
</div>
...
...
ee/spec/frontend/dependencies/components/__snapshots__/dependencies_table_spec.js.snap
View file @
1c5fc6c6
...
...
@@ -14,7 +14,6 @@ exports[`DependenciesTable component given a list of dependencies (loaded) match
Component
</div>
<div
class="table-section section-15"
role="rowheader"
...
...
@@ -23,7 +22,6 @@ exports[`DependenciesTable component given a list of dependencies (loaded) match
Version
</div>
<div
class="table-section section-20"
role="rowheader"
...
...
@@ -32,7 +30,6 @@ exports[`DependenciesTable component given a list of dependencies (loaded) match
Packager
</div>
<div
class="table-section flex-grow-1"
role="rowheader"
...
...
@@ -66,7 +63,6 @@ exports[`DependenciesTable component given a list of dependencies (loading) matc
Component
</div>
<div
class="table-section section-15"
role="rowheader"
...
...
@@ -75,7 +71,6 @@ exports[`DependenciesTable component given a list of dependencies (loading) matc
Version
</div>
<div
class="table-section section-20"
role="rowheader"
...
...
@@ -84,7 +79,6 @@ exports[`DependenciesTable component given a list of dependencies (loading) matc
Packager
</div>
<div
class="table-section flex-grow-1"
role="rowheader"
...
...
@@ -120,7 +114,6 @@ exports[`DependenciesTable component given an empty list of dependencies matches
Component
</div>
<div
class="table-section section-15"
role="rowheader"
...
...
@@ -129,7 +122,6 @@ exports[`DependenciesTable component given an empty list of dependencies matches
Version
</div>
<div
class="table-section section-20"
role="rowheader"
...
...
@@ -138,7 +130,6 @@ exports[`DependenciesTable component given an empty list of dependencies matches
Packager
</div>
<div
class="table-section flex-grow-1"
role="rowheader"
...
...
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