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
f39f5d2f
Commit
f39f5d2f
authored
Dec 22, 2017
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ItemStatsValue Component, add `updatedAt` info for projects
parent
7a2f1073
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
51 deletions
+37
-51
app/assets/javascripts/groups/components/item_stats.vue
app/assets/javascripts/groups/components/item_stats.vue
+37
-51
No files found.
app/assets/javascripts/groups/components/item_stats.vue
View file @
f39f5d2f
<
script
>
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
icon
from
'
~/vue_shared/components/icon.vue
'
;
import
timeAgoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
{
ITEM_TYPE
,
VISIBILITY_TYPE_ICON
,
GROUP_VISIBILITY_TYPE
,
PROJECT_VISIBILITY_TYPE
}
from
'
../constants
'
;
import
itemStatsValue
from
'
./item_stats_value.vue
'
;
export
default
{
directives
:
{
tooltip
,
components
:
{
icon
,
timeAgoTooltip
,
itemStatsValue
,
},
props
:
{
item
:
{
...
...
@@ -34,65 +38,47 @@ export default {
<
template
>
<div
class=
"stats"
>
<span
v-tooltip
<item-stats-value
v-if=
"isGroup"
css-class=
"number-subgroups"
icon-name=
"folder"
:title=
"s__('Subgroups')"
class=
"number-subgroups"
data-placement=
"top"
data-container=
"body"
>
<i
class=
"fa fa-folder"
aria-hidden=
"true"
/>
{{
item
.
subgroupCount
}}
</span>
<span
v-tooltip
:value=
item.subgroupCount
/>
<item-stats-value
v-if=
"isGroup"
css-class=
"number-projects"
icon-name=
"bookmark"
:title=
"s__('Projects')"
class=
"number-projects"
data-placement=
"top"
data-container=
"body"
>
<i
class=
"fa fa-bookmark"
aria-hidden=
"true"
/>
{{
item
.
projectCount
}}
</span>
<span
v-tooltip
:value=
item.projectCount
/>
<item-stats-value
v-if=
"isGroup"
css-class=
"number-users"
icon-name=
"users"
:title=
"s__('Members')"
class=
"number-users"
data-placement=
"top"
data-container=
"body"
>
<i
class=
"fa fa-users"
aria-hidden=
"true"
/>
{{
item
.
memberCount
}}
</span>
:value=
item.memberCount
/>
<span
v-if=
"isProject"
class=
"project-stars"
>
<i
class=
"fa fa-star"
aria-hidden=
"true"
/>
{{
item
.
starCount
}}
<icon
name=
"star"
/>
<span
class=
"stat-value"
>
{{
item
.
starCount
}}
</span>
</span>
<span
v-tooltip
<item-stats-value
css-class=
"item-visibility"
tooltip-placement=
"left"
:icon-name=
"visibilityIcon"
:title=
"visibilityTooltip"
data-placement=
"left"
data-container=
"body"
class=
"item-visibility"
>
<i
:class=
"visibilityIcon"
class=
"fa"
aria-hidden=
"true"
/>
<div
class=
"last-updated"
v-if=
"isProject"
>
<time-ago-tooltip
tooltip-placement=
"bottom"
:time=
"item.updatedAt"
/>
</
span
>
</
div
>
</div>
</
template
>
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