Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Commits
a1d91be3
Commit
a1d91be3
authored
Aug 27, 2020
by
galegosimpatico
Browse files
Options
Downloads
Patches
Plain Diff
Minify the last edit fuzzy date.
parent
698328fc
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/views/posts/_expanded.html.erb
+2
-1
2 additions, 1 deletion
app/views/posts/_expanded.html.erb
config/locales/time.en_abbrev.yml
+10
-0
10 additions, 0 deletions
config/locales/time.en_abbrev.yml
with
12 additions
and
1 deletion
app/views/posts/_expanded.html.erb
+
2
−
1
View file @
a1d91be3
...
@@ -131,7 +131,8 @@
...
@@ -131,7 +131,8 @@
<%
end
%>
<%
end
%>
<%
if
been_edited
then
%>
<%
if
been_edited
then
%>
<i
class=
"fa fa-pencil-alt"
title=
"Edited"
></i>
<%=
time_ago_in_words
(
post
.
last_activity
)
%>
ago
<i
class=
"fa fa-pencil-alt"
title=
"Edited"
></i>
<%=
time_ago_in_words
(
post
.
last_activity
,
locale: :en_abbrev
)
%>
ago
<%
if
not
last_edited_by_self
then
%>
<%
if
not
last_edited_by_self
then
%>
by
<%=
link_to
post
.
last_activity_by
.
username
,
user_path
(
post
.
last_activity_by_id
)
%>
by
<%=
link_to
post
.
last_activity_by
.
username
,
user_path
(
post
.
last_activity_by_id
)
%>
<%
end
%>
<%
end
%>
...
...
This diff is collapsed.
Click to expand it.
config/locales/time.en_abbrev.yml
0 → 100644
+
10
−
0
View file @
a1d91be3
en_abbrev
:
datetime
:
distance_in_words
:
x_minutes
:
one
:
"
1m"
other
:
"
%{count}m"
about_x_hours
:
other
:
"
~%{count}h"
x_days
:
one
:
"
1d"
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
sign in
to comment