Skip to content

Commit 865d96d

Browse files
committed
v0.2.0 for redmine 3.0
1 parent 467ac27 commit 865d96d

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ This is a fork of zipme's [redmine_lightbox](https://github.com/zipme/redmine_li
1111
Compatibility
1212
-------------
1313

14-
The latest version only supports redmine 2.6.0+.
14+
The latest version only supports redmine 3.0
15+
16+
A Redmine 2.6.x compatible version can be found in the [redmine-2.6](https://github.com/paginagmbh/redmine_lightbox2/tree/redmine-2.6) branch.
1517

1618
A Redmine 2.0 - 2.5.x compatible version can be found in the [redmine-2.5-and-lower](https://github.com/paginagmbh/redmine_lightbox2/tree/redmine-2.5-and-lower) branch.
1719

app/views/attachments/_links.html.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<div class="attachments">
2+
<div class="contextual">
3+
<%= link_to image_tag('edit.png'),
4+
container_attachments_edit_path(container),
5+
:title => l(:label_edit_attachments) if options[:editable] %>
6+
</div>
27
<% for attachment in attachments %>
38
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
49
<% if attachment.is_text? %>

assets/stylesheets/lightbox.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
div.attachments div.images {
22
border: 1px solid #CCCCCC;
3-
padding: 10px 10px 0 10px;
3+
padding: 5px;
44
margin: 10px;
55
display: inline-block;
66
}
77
div.attachments div.images > div {
88
margin-bottom: 10px;
99
}
10-
div.attachments div.images a.lightbox {
11-
margin: 0px 5px;
12-
}
1310
div.thumbnails img {
1411
max-width: 150px;
1512
}

init.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
name 'Redmine Lightbox 2'
88
author 'Tobias Fischer'
99
description 'This plugin lets you preview image, pdf and swf attachments in a lightbox.'
10-
version '0.1.2'
10+
version '0.2.0'
1111
url 'https://github.com/paginagmbh/redmine_lightbox2'
12-
requires_redmine :version_or_higher => '2.6.0'
12+
requires_redmine :version_or_higher => '3.0.0'
1313
end
1414

1515

0 commit comments

Comments
 (0)