Skip to content

Commit

Permalink
admin reports new styles for links
Browse files Browse the repository at this point in the history
  • Loading branch information
Dime authored and Glenn Roberts committed Feb 9, 2011
1 parent a5f8cff commit 29e3960
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 11 deletions.
45 changes: 40 additions & 5 deletions app/stylesheets/partials/_app.sass
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,48 @@ ul.group
+clearfix
.first-half, .second-half
margin: 0 !important

li
position: relative
&:hover
a
background: image_url("icon_link_hover.png") no-repeat $lightest-blue 10px center
color: $mid-blue
ul.report_actions
display: block
h3
padding-top: 10px !important

li
ul
+horizontal-list

a
background: image_url("icon_link.png") no-repeat $lightest-blue + #090909 10px center
display: block
font-size: 12px
margin-bottom: 5px
padding: 10px 8px 8px 28px
text-decoration: none
+border-radius
&.grayed-out
color: #999
&:hover
background: image_url("icon_link_hover.png") no-repeat $lightest-blue 10px center

ul.report_actions
display: none
position: absolute
top: 6px
right: 10px
li
display: inline
float: right
a
background: none
display: inline
opacity: 0.3
padding: 0 2px
&:hover
opacity: 0.9
&.regenerate
opacity: 0.9


#heading-activity
background: image_url("icon_reporter.png") no-repeat center left
Expand Down
13 changes: 7 additions & 6 deletions app/views/admin/reports/_report_row.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

- if rep
= link_to title, admin_report_path(rep)
.csv= link_to image_tag("icon_csv.png"), admin_report_path(rep), :title => 'CSV (Comma Separated Value) report'
.formatted= link_to image_tag("icon_formatted.png"), admin_report_path(rep, :formatted => true), :title => 'Formatted report'
= link_to image_tag("icon_regenerate.png"), generate_admin_report_path(key), :title => 'Regenerate report'
.edit= link_to image_tag("icon_edit.png"), edit_admin_report_path(rep)
%ul.report_actions
%li= link_to image_tag("icon_csv.png"), admin_report_path(rep), :title => 'CSV (Comma Separated Value) report'
%li= link_to image_tag("icon_formatted.png"), admin_report_path(rep, :formatted => true), :title => 'Formatted report'
%li= link_to image_tag("icon_regenerate.png"), generate_admin_report_path(key), :title => 'Regenerate report'
%li= link_to image_tag("icon_edit.png"), edit_admin_report_path(rep)

- else # If report wasnt generated yet, allow user to regen it.
= link_to title, generate_admin_report_path(key), :title => 'Generate report'
= link_to image_tag("icon_regenerate.png"), generate_admin_report_path(key), :title => 'Regenerate report'
= link_to title, generate_admin_report_path(key), :title => 'Generate report', :class => "grayed-out"
= link_to image_tag("icon_regenerate.png"), generate_admin_report_path(key), :title => 'Regenerate report', :class => "regenerate"
Binary file modified public/images/icon_csv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/icon_edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/icon_formatted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/icon_regenerate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 29e3960

Please sign in to comment.