Skip to content
Snippets Groups Projects
Commit c1c28d3c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Restyle last push widget

parent d20f78f7
No related branches found
No related tags found
No related merge requests found
Loading
@@ -129,30 +129,6 @@
Loading
@@ -129,30 +129,6 @@
} }
} }
   
/**
* Push event widget
*
*/
.event_lp {
color: #777;
padding: 10px;
min-height: 22px;
border-left: 5px solid $primary_color;
margin-bottom: 20px;
background: #f9f9f9;
.avatar {
width: 24px;
}
.btn-new-mr {
@extend .btn-primary;
@extend .small;
@extend .pull-right;
margin: -2px;
}
}
/** /**
* Event filter * Event filter
* *
Loading
@@ -182,3 +158,9 @@
Loading
@@ -182,3 +158,9 @@
} }
} }
} }
.event-last-push .btn-create {
position: relative;
top: -3px;
right: -30px;
}
- if show_last_push_widget?(event) - if show_last_push_widget?(event)
.event_lp .alert.alert-success.event-last-push
%span You pushed to %span You pushed to
= link_to project_commits_path(event.project, event.ref_name) do = link_to project_commits_path(event.project, event.ref_name) do
%strong= truncate(event.ref_name, length: 28) %strong= truncate(event.ref_name, length: 28)
Loading
@@ -8,6 +8,6 @@
Loading
@@ -8,6 +8,6 @@
%span %span
= time_ago_in_words(event.created_at) = time_ago_in_words(event.created_at)
ago. ago.
.pull-right
= link_to new_mr_path_from_push_event(event), title: "New Merge Request", class: "btn btn-new-mr" do = link_to new_mr_path_from_push_event(event), title: "New Merge Request", class: "btn btn-create btn-small" do
Create Merge Request Create Merge Request
Loading
@@ -19,7 +19,7 @@
Loading
@@ -19,7 +19,7 @@
= text_field_tag :to, params[:to], placeholder: "aa8b4ef", class: "xlarge" = text_field_tag :to, params[:to], placeholder: "aa8b4ef", class: "xlarge"
.pull-left .pull-left
   
= submit_tag "Compare", class: "btn btn-primary wide commits-compare-btn" = submit_tag "Compare", class: "btn btn-create commits-compare-btn"
- if @refs_are_same - if @refs_are_same
.alert .alert
%span Refs are the same %span Refs are the same
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment