BigW Consortium Gitlab

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