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