Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add real buttons to admin dashboard for spree analytics preview

  • Loading branch information...
commit edd1acae50254101b373e4db73638d21d80525a5 1 parent 8afcd64
@devilcoders devilcoders authored BDQ committed
View
12 core/app/assets/stylesheets/admin/admin.css.erb
@@ -630,3 +630,15 @@ span.handle{
color: #000000;
border: 1px solid #66ff7e;
}
+
+/* Spree analytics preview buttons */
+.preview-buttons {
+ position: absolute;
+ left: 860px;
+ top: 870px;
+}
+.preview-buttons a.button {
+ display: inline-block;
+ float: none;
+ font-size: 14px;
+}
View
BIN  dash/app/assets/images/analytics_dashboard_preview.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
7 dash/app/views/spree/admin/overview/index.html.erb
@@ -31,7 +31,12 @@
<%= image_tag 'analytics_dashboard_preview.png' %>
<% end %>
<br>
- <%= link_to t(:enter_token), admin_path(:dash_edit => true) %>
+ <div class="preview-buttons">
+ <%= link_to t(:enter_token), admin_path(:dash_edit => true), :class => "button green" %>
+ <%= t(:or) %> &nbsp;
+ <%= link_to t(:learn_more), "http://spreecommerce.com/blog/2012/01/31/introducing-spree-analytics/", :class => "button", :target => "_blank" %>
+ </div>
+
<% end %>
Please sign in to comment.
Something went wrong with that request. Please try again.