Commit d4c5dc49 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Only show icons on profile page; change to case statement

parent c7011c88
- if current_path?('dashboard#activity') - if current_path?('users#show')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
- if event.target - if event.target
- if event.action_name == "opened" - case event.action_name
- when 'opened'
.system-note-image.open-icon .system-note-image.open-icon
= custom_icon("icon_status_open") = custom_icon("icon_status_open")
- elsif event.action_name == "closed" - when 'closed'
.system-note-image.closed-icon .system-note-image.closed-icon
= custom_icon("icon_status_closed") = custom_icon("icon_status_closed")
- else - else
.system-note-image.fork-icon .system-note-image.fork-icon
= custom_icon("icon_code_fork") = custom_icon("icon_code_fork")
- else
.system-note-image.user-avatar
= author_avatar(event, size: 32)
.event-title .event-title
%span.author_name= link_to_author event %span.author_name= link_to_author event
......
- if current_path?('dashboard#activity') - if current_path?('users#show')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
.system-note-image.open-icon .system-note-image.open-icon
= custom_icon("icon_status_open") = custom_icon("icon_status_open")
- else
.system-note-image.user-avatar
= author_avatar(event, size: 32)
.event-title .event-title
%span.author_name= link_to_author event %span.author_name= link_to_author event
......
- if current_path?('dashboard#activity') - if current_path?('users#show')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
.system-note-image .system-note-image
= custom_icon("icon_comment_o") = custom_icon("icon_comment_o")
- else
.system-note-image.user-avatar
= author_avatar(event, size: 32)
.event-title .event-title
%span.author_name= link_to_author event %span.author_name= link_to_author event
......
- project = event.project - project = event.project
- if current_path?('dashboard#activity') - if current_path?('users#show')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
.system-note-image .system-note-image
- if event.action_name == "deleted" - if event.action_name == "deleted"
= custom_icon("trash_o") = custom_icon("trash_o")
- else - else
= custom_icon("icon_commit") = custom_icon("icon_commit")
- else
.system-note-image.user-avatar
= author_avatar(event, size: 32)
.event-title .event-title
%span.author_name= link_to_author event %span.author_name= link_to_author event
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment