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
7e2c1283
Commit
7e2c1283
authored
Jan 08, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GeoNodeEventStatus Component
parent
dccde647
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
ee/app/assets/javascripts/geo_nodes/components/geo_node_event_status.vue
...avascripts/geo_nodes/components/geo_node_event_status.vue
+50
-0
No files found.
ee/app/assets/javascripts/geo_nodes/components/geo_node_event_status.vue
0 → 100644
View file @
7e2c1283
<
script
>
import
{
formatDate
}
from
'
~/lib/utils/datetime_utility
'
;
import
timeAgoMixin
from
'
~/vue_shared/mixins/timeago
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
export
default
{
props
:
{
eventId
:
{
type
:
Number
,
required
:
true
,
},
eventTimeStamp
:
{
type
:
Number
,
required
:
true
,
},
},
mixins
:
[
timeAgoMixin
,
],
directives
:
{
tooltip
,
},
computed
:
{
timeStamp
()
{
return
new
Date
(
this
.
eventTimeStamp
*
1000
);
},
timeStampString
()
{
return
formatDate
(
this
.
timeStamp
);
},
},
};
</
script
>
<
template
>
<div
class=
"node-detail-value"
>
<strong>
{{
eventId
}}
</strong>
<span
v-tooltip
class=
"event-status-timestamp"
data-placement=
"bottom"
:title=
"timeStampString"
>
(
{{
timeFormated
(
timeStamp
)
}}
)
</span>
</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