burp_cms 1.5.13 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTQ2ZTE4YTk2YWVkMDc2MmRmODIxMzAyNDlkNWQ2ZWY2YjNkMTY5Mg==
4
+ YmViZTFhYWFiMGRkM2VhY2Y5YWZmMTg5NjE0Y2E5NzU5YjU2MmE5Yg==
5
5
  data.tar.gz: !binary |-
6
- ZGY5MGNmYTMxYjVjNDljMGYwOTE5NzYwNjliZmRmMDU4NzJjM2ExMQ==
6
+ NTgyY2QzN2Q0MjI3MGMwY2MxNDE0MzFjMzFhOWY5YjNmYWNiMWRjNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWYxZTU1NmFkYjBkYzZmNzA4Njg0MzdjNzUxMDJjZjNiOGFhYWQxYjNlYzZj
10
- OTRhODhmOGUwZmJmMmM5MmY2MmI3ODBmNTM5ZDE0NTIyM2NkOWI4ZGIzYWI2
11
- ZDk3YmRiZDQxNDc5Y2RhOWY2N2U1ZDkxYTg3Yjg5Zjk0Mjc0MWE=
9
+ MzEyYzIzMjRlZTBjYjMyOWY5MGMxMmM5MTczOWU1ZjdmYzUwYjdkMjJmYWJi
10
+ MzZkMmU3NWM5ODY1MmFkNDdmZjc0ZjkwMDg2YWU1MWJjOWZkNzk3M2M4ZTE4
11
+ NjBjZGViNzBlYjQ1MTUxNTIyOWVjNzg5ZDY1YjNmNWVmMTU5MDc=
12
12
  data.tar.gz: !binary |-
13
- OWE5Y2I2MmE2MTdmZWRkMDRlNzgyYTI5NWVjNzI2OGYyNTdjZmM1NmE0ZjI1
14
- MGU3ZmIxNmI4MzllYTI1YWY2NzIzYzUwODNlZmUwZmU0ODQ3NmZkMzlhNjcz
15
- MDBkY2UwNjBiOWY5N2Y5Mzg5Mzc3NTU0MmVmZWVlNzZmYjNlOGE=
13
+ NzQ4ODIxZDc0Yzg0NDcwM2QyZGQzZWNmZGQ4NzIwYjg3MGY2Yzg4M2RmZjJk
14
+ MzcyMTNlYzU0ZTBmMDEyZmRhY2ZhMTlhZjhjY2VjZmEyMjE4MDY3ZGJkZWUw
15
+ OTg0ZDNiODFhNDUyOTI1MDA1YjRmYWJlOWU4Y2Y1NDEwMTIxZDM=
@@ -38,5 +38,23 @@
38
38
  table {
39
39
  margin: 30px auto;
40
40
  width: 800px;
41
+
42
+ td a {
43
+ position: relative;
44
+
45
+ img {
46
+ max-width: 100px;
47
+ margin: 0px 5px 0px 0px;
48
+ position: absolute;
49
+ left: -120px;
50
+ display: none;
51
+ box-shadow: 0px 5px 10px rgba(0,0,0,0.5);
52
+ bottom: 0px;
53
+ }
54
+
55
+ &:hover img {
56
+ display: block;
57
+ }
58
+ }
41
59
  }
42
60
  }
@@ -4,6 +4,12 @@ module Burp
4
4
  protect_from_forgery
5
5
  before_filter :authenticate
6
6
  before_filter :init_body_classes
7
+ before_filter :set_site_name
8
+
9
+ def set_site_name
10
+ @site_name = Rails.application.config.respond_to?(:site_name) ?
11
+ Rails.application.config.site_name : Rails.application.class.parent_name.split(/(?=[A-Z])/).join(" ").downcase.capitalize
12
+ end
7
13
 
8
14
  def init_body_classes
9
15
 
@@ -27,9 +27,16 @@
27
27
  <tbody>
28
28
  <% @files.each do |file| %>
29
29
  <tr>
30
- <td><%= link_to file.public_path, file.public_path, :title => "Click to open" %></a></td>
31
- <td class="upload-time"><%= file.mtime.strftime("%Y-%m-%d %H:%M") %></a></td>
32
- <td class="file-size"><%= number_to_human_size(file.size, :precision => 2) %></a></td>
30
+ <td>
31
+ <%= link_to(file.public_path, :title => "Click to open") do %>
32
+ <%= file.public_path %>
33
+ <% if file.public_path.match(/\.(png|jpeg|gif|jpg)$/i) %>
34
+ <img class="preview" src="<%= file.public_path.gsub(/files\//,"files/small/") %>">
35
+ <% end %>
36
+ <% end %>
37
+ </td>
38
+ <td class="upload-time"><%= file.mtime.strftime("%Y-%m-%d %H:%M") %></td>
39
+ <td class="file-size"><%= number_to_human_size(file.size, :precision => 2) %></td>
33
40
  <td class="actions"><%= link_to 'Remove', file_path(file), :confirm => 'Are you sure?', :id => 'remove-link', :title => "Click to remove file.", :method => :delete %></td>
34
41
  </tr>
35
42
  <% end %>
@@ -62,7 +69,7 @@
62
69
  },
63
70
  template: '<div class="qq-uploader">' +
64
71
  '<div class="file-upload-drop-area" style="display: block;"><span>Drop files here to upload</span></div>' +
65
- '<div class="file-upload-button btn btn-large">Click here to upload</div>' +
72
+ '<div class="file-upload-button btn btn-large">Upload files</div>' +
66
73
  '<ul class="qq-upload-list"></ul>' +
67
74
  '</div>',
68
75
 
@@ -15,7 +15,7 @@
15
15
  <p>Click on any <strong style="color: orange;">group</strong> or <strong style="color: green;">link</strong> to edit it and then click the remove button.</p>
16
16
 
17
17
  <h4>Add a group or link</h4>
18
- <p>Click on "New link" or "New group" bellow the menu to add a new <strong style="color: green;">link</strong> or <strong style="color: orange;">group</strong>.</p>
18
+ <p>Click on "Add link" or "Add group" bellow the menu to add a new <strong style="color: green;">link</strong> or <strong style="color: orange;">group</strong>.</p>
19
19
  </div>
20
20
 
21
21
  <h1><%= @menu.name.capitalize %></h1>
@@ -23,9 +23,9 @@
23
23
  <span class="dnd-editable-menu editable">
24
24
  <%= @menu.to_html %>
25
25
  </span>
26
-
27
- <%= link_to "» New link", new_menu_link_path(@menu), :class => 'new-link-link' %><br>
28
- <%= link_to "» New group", new_menu_group_path(@menu), :class => 'new-group-link' %>
26
+ <br>
27
+ <%= link_to "Add link", new_menu_link_path(@menu), :class => 'new-link-link btn' %>
28
+ <%= link_to "Add group", new_menu_group_path(@menu), :class => 'new-group-link btn' %>
29
29
 
30
30
  <div class="modal hide fade">
31
31
  <div class="modal-header">
@@ -54,7 +54,7 @@
54
54
  </table>
55
55
  <br>
56
56
 
57
- <%= link_to "» New page", new_page_path, :class => 'new-page-link' %>
57
+ <%= link_to "Add page", new_page_path, :class => 'new-page-link btn' %>
58
58
 
59
59
 
60
60
 
@@ -171,7 +171,7 @@
171
171
  </section>
172
172
 
173
173
  <section>
174
- <p>Click the "New page" link</p>
174
+ <p>Click the "Add page" link</p>
175
175
  <%= image_tag "burp/adding-a-page-2.png", :class => "img-polaroid" %>
176
176
  </section>
177
177
 
@@ -331,7 +331,7 @@
331
331
  </section>
332
332
 
333
333
  <section>
334
- <p>Click on "New link".</p>
334
+ <p>Click on "Add link".</p>
335
335
  <%= image_tag "burp/add-link-to-menu-2.png", :class => "img-polaroid" %>
336
336
  </section>
337
337
 
@@ -363,7 +363,7 @@
363
363
  </section>
364
364
 
365
365
  <section>
366
- <p>Click on "New group".</p>
366
+ <p>Click on "Add group".</p>
367
367
  <%= image_tag "burp/add-group-to-menu-2.png", :class => "img-polaroid" %>
368
368
  </section>
369
369
 
@@ -20,7 +20,7 @@
20
20
  <span class="icon-bar"></span>
21
21
  <span class="icon-bar"></span>
22
22
  </a>
23
- <a class="brand" href="/"><%= Rails.application.config.respond_to?(:site_name) ? Rails.application.config.site_name : Rails.application.class.parent_name %></a>
23
+ <a class="brand" href="/"><%= @site_name %></a>
24
24
  <div class="nav-collapse collapse">
25
25
  <%= Burp::Group.bootstrap_nav(menu, request) %>
26
26
  </div>
data/lib/burp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Burp
2
- VERSION = "1.5.13"
2
+ VERSION = "1.6.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: burp_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.13
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darwin