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')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
- if current_path?('users#show')
- if event.target
- if event.action_name == "opened"
- case event.action_name
- when 'opened'
.system-note-image.open-icon
= custom_icon("icon_status_open")
- elsif event.action_name == "closed"
- when 'closed'
.system-note-image.closed-icon
= custom_icon("icon_status_closed")
- else
.system-note-image.fork-icon
= custom_icon("icon_code_fork")
- else
.system-note-image.user-avatar
= author_avatar(event, size: 32)
.event-title
%span.author_name= link_to_author event
......
- if current_path?('dashboard#activity')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
- if current_path?('users#show')
.system-note-image.open-icon
= custom_icon("icon_status_open")
- else
.system-note-image.user-avatar
= author_avatar(event, size: 32)
.event-title
%span.author_name= link_to_author event
......
- if current_path?('dashboard#activity')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
- if current_path?('users#show')
.system-note-image
= custom_icon("icon_comment_o")
- else
.system-note-image.user-avatar
= author_avatar(event, size: 32)
.event-title
%span.author_name= link_to_author event
......
- project = event.project
- if current_path?('dashboard#activity')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
- if current_path?('users#show')
.system-note-image
- if event.action_name == "deleted"
= custom_icon("trash_o")
- else
= custom_icon("icon_commit")
- else
.system-note-image.user-avatar
= author_avatar(event, size: 32)
.event-title
%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