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

Use avatars instead of icons in activity view

parent 9c576cc7
...@@ -10,10 +10,14 @@ ...@@ -10,10 +10,14 @@
position: relative; position: relative;
&.event-inline { &.event-inline {
.profile-icon { .system-note-image {
top: 20px; top: 20px;
} }
.user-avatar {
top: 14px;
}
.event-title, .event-title,
.event-item-timestamp { .event-item-timestamp {
line-height: 40px; line-height: 40px;
...@@ -24,7 +28,7 @@ ...@@ -24,7 +28,7 @@
color: $gl-text-color; color: $gl-text-color;
} }
.profile-icon { .system-note-image {
position: absolute; position: absolute;
left: 0; left: 0;
top: 14px; top: 14px;
...@@ -128,8 +132,7 @@ ...@@ -128,8 +132,7 @@
li { li {
&.commit { &.commit {
background: transparent; background: transparent;
padding: 3px; padding: 0;
padding-left: 0;
border: none; border: none;
.commit-row-title { .commit-row-title {
...@@ -183,7 +186,7 @@ ...@@ -183,7 +186,7 @@
max-width: 100%; max-width: 100%;
} }
.profile-icon { .system-note-image {
display: none; display: none;
} }
......
- if event.target - if current_path?('dashboard#activity')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
- if event.target
- if event.action_name == "opened" - if event.action_name == "opened"
.profile-icon.open-icon .system-note-image.open-icon
= custom_icon("icon_status_open") = custom_icon("icon_status_open")
- elsif event.action_name == "closed" - elsif event.action_name == "closed"
.profile-icon.closed-icon .system-note-image.closed-icon
= custom_icon("icon_status_closed") = custom_icon("icon_status_closed")
- else - else
.profile-icon.fork-icon .system-note-image.fork-icon
= custom_icon("icon_code_fork") = custom_icon("icon_code_fork")
.event-title .event-title
......
.profile-icon.open-icon - if current_path?('dashboard#activity')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
.system-note-image.open-icon
= custom_icon("icon_status_open") = custom_icon("icon_status_open")
.event-title .event-title
......
.profile-icon - if current_path?('dashboard#activity')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
.system-note-image
= custom_icon("icon_comment_o") = custom_icon("icon_comment_o")
.event-title .event-title
......
- project = event.project - project = event.project
.profile-icon - if current_path?('dashboard#activity')
.system-note-image.user-avatar
= author_avatar(event, size: 32)
- else
.system-note-image
- if event.action_name == "deleted" - if event.action_name == "deleted"
= custom_icon("trash_o") = custom_icon("trash_o")
- else - else
......
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