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
7f3fc26e
Commit
7f3fc26e
authored
Dec 08, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix failing tests
parent
68c1e3a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/views/shared/snippets/_snippet.html.haml
app/views/shared/snippets/_snippet.html.haml
+2
-2
features/steps/project/snippets.rb
features/steps/project/snippets.rb
+1
-1
spec/features/dashboard/datetime_on_tooltips_spec.rb
spec/features/dashboard/datetime_on_tooltips_spec.rb
+1
-1
No files found.
app/views/shared/snippets/_snippet.html.haml
View file @
7f3fc26e
...
...
@@ -21,9 +21,9 @@
.snippet-info
#{
snippet
.
to_reference
}
·
authored
#{
time_ago_with_tooltip
(
snippet
.
created_at
,
placement:
'bottom'
)
}
by
authored
#{
time_ago_with_tooltip
(
snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet-created-ago'
)
}
by
=
link_to
user_snippets_path
(
snippet
.
author
)
do
=
snippet
.
author_name
.pull-right.snippet-updated-at
%span
updated
#{
time_ago_with_tooltip
(
snippet
.
updated_at
,
placement:
'bottom'
,
html_class:
'snippet_update_ago'
)
}
%span
updated
#{
time_ago_with_tooltip
(
snippet
.
updated_at
,
placement:
'bottom'
)
}
features/steps/project/snippets.rb
View file @
7f3fc26e
...
...
@@ -22,7 +22,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
step
'I click link "New snippet"'
do
click_link
"New snippet"
first
(
:link
,
"New snippet"
).
click
end
step
'I click link "Snippet one"'
do
...
...
spec/features/dashboard/datetime_on_tooltips_spec.rb
View file @
7f3fc26e
...
...
@@ -36,7 +36,7 @@ feature 'Tooltips on .timeago dates', feature: true, js: true do
visit
user_snippets_path
(
user
)
wait_for_ajax
()
page
.
find
(
'.js-timeago'
).
hover
page
.
find
(
'.js-timeago
.snippet-created-ago
'
).
hover
end
it
'has the datetime formated correctly'
do
...
...
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