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
06fdfc73
Commit
06fdfc73
authored
Oct 03, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved middot into helper method
parent
8ea18c37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/helpers/todos_helper.rb
app/helpers/todos_helper.rb
+2
-1
app/views/dashboard/todos/_todo.html.haml
app/views/dashboard/todos/_todo.html.haml
+1
-1
No files found.
app/helpers/todos_helper.rb
View file @
06fdfc73
...
...
@@ -120,7 +120,8 @@ module TodosHelper
is_due_today
=
todo
.
target
.
due_date
.
try
(
:today?
)
is_overdue
=
todo
.
target
.
try
(
:overdue?
)
content_tag
:span
,
class:
[(
'text-warning'
if
is_due_today
),
(
'text-danger'
if
is_overdue
)]
do
html
=
"· "
.
html_safe
html
<<
content_tag
(
:span
,
class:
[(
'text-warning'
if
is_due_today
),
(
'text-danger'
if
is_overdue
)])
do
"Due
#{
is_due_today
?
"today"
:
todo
.
target
.
due_date
.
to_s
(
:medium
)
}
"
end
end
...
...
app/views/dashboard/todos/_todo.html.haml
View file @
06fdfc73
...
...
@@ -19,7 +19,7 @@
(removed)
·
#{
time_ago_with_tooltip
(
todo
.
created_at
)
}
·
#{
todo_due_date
(
todo
)
}
=
todo_due_date
(
todo
)
.todo-body
.todo-note
...
...
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