Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GéoContrib
Géocontrib Frontend
Commits
695d2c20
Commit
695d2c20
authored
3 years ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
format date and text & fix missing author and brackets
parent
579e06e6
No related branches found
No related tags found
1 merge request
!100
REDMINE_ISSUE-11927
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/feature_type/Feature_type_detail.vue
+11
-3
11 additions, 3 deletions
src/views/feature_type/Feature_type_detail.vue
with
11 additions
and
3 deletions
src/views/feature_type/Feature_type_detail.vue
+
11
−
3
View file @
695d2c20
...
@@ -154,10 +154,10 @@
...
@@ -154,10 +154,10 @@
}}
}}
</div>
</div>
<div>
<div>
Créé le
{{
feature
.
created_on
}}
[
Créé le
{{
feature
.
created_on
|
formatDate
}}
<span
v-if=
"$store.state.user
.is_authenticated
"
>
<span
v-if=
"$store.state.user"
>
par
{{
feature
.
display_creator
}}
</span
par
{{
feature
.
display_creator
}}
</span
>
>
]
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -204,6 +204,14 @@ export default {
...
@@ -204,6 +204,14 @@ export default {
};
};
},
},
filters
:
{
formatDate
(
value
)
{
let
date
=
new
Date
(
value
);
date
=
date
.
toLocaleString
().
replace
(
"
,
"
,
"
à
"
);
return
date
.
substr
(
0
,
date
.
length
-
3
);
//* quick & dirty way to remove seconds from date
},
},
computed
:
{
computed
:
{
...
mapGetters
([
"
project
"
,
"
permissions
"
]),
...
mapGetters
([
"
project
"
,
"
permissions
"
]),
...
mapState
(
"
feature
"
,
[
"
features
"
]),
...
mapState
(
"
feature
"
,
[
"
features
"
]),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment