Skip to content

Commit 467ac27

Browse files
committed
code cleanup
1 parent d55b6e4 commit 467ac27

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

app/views/attachments/_links.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,4 @@
4949
</div>
5050
<% end -%>
5151
<% end %>
52-
5352
</div>

assets/stylesheets/lightbox.css

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
1-
div.attachments div.images
2-
{
1+
div.attachments div.images {
32
border: 1px solid #CCCCCC;
43
padding: 10px 10px 0 10px;
54
margin: 10px;
65
display: inline-block;
76
}
8-
div.attachments div.images > div
9-
{
7+
div.attachments div.images > div {
108
margin-bottom: 10px;
119
}
12-
div.attachments div.images a.lightbox
13-
{
10+
div.attachments div.images a.lightbox {
1411
margin: 0px 5px;
1512
}
16-
div.thumbnails img
17-
{
13+
div.thumbnails img {
1814
max-width: 150px;
1915
}
2016

21-
a.pdf img, a.swf img
22-
{
17+
a.pdf img, a.swf img {
2318
margin: 0 4px;
2419
width: 18px;
2520
}
@@ -51,4 +46,4 @@ a.pdf img, a.swf img
5146
}
5247
.fancybox-prev {
5348
left: -70px;
54-
}
49+
}

lib/hooks/view_layouts_base_html_head_hook.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module RedmineLightbox2
22
module Hooks
33
class ViewLayoutsBaseHtmlHeadHook < Redmine::Hook::ViewListener
44
def view_layouts_base_html_head(context={})
5-
if context[:controller] && ( context[:controller].is_a?(IssuesController) ||
5+
if context[:controller] && ( context[:controller].is_a?(IssuesController) ||
66
(Object.const_defined?('ContactsController') && context[:controller].is_a?(ContactsController)) ||
77
context[:controller].is_a?(WikiController) ||
88
context[:controller].is_a?(DocumentsController) ||
9-
context[:controller].is_a?(FilesController) ||
9+
context[:controller].is_a?(FilesController) ||
1010
context[:controller].is_a?(BoardsController) ||
1111
context[:controller].is_a?(NewsController))
1212
return stylesheet_link_tag("jquery.fancybox-2.1.5.css", :plugin => "redmine_lightbox2", :media => "screen") +

0 commit comments

Comments
 (0)