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 +8 -8
- data/app/assets/stylesheets/burp/views/files/index.less +18 -0
- data/app/controllers/burp/application_controller.rb +6 -0
- data/app/views/burp/files/index.html.erb +11 -4
- data/app/views/burp/menus/edit.html.erb +4 -4
- data/app/views/burp/pages/index.html.erb +1 -1
- data/app/views/burp/static/help.html.erb +3 -3
- data/app/views/layouts/burp/application.html.erb +1 -1
- data/lib/burp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmViZTFhYWFiMGRkM2VhY2Y5YWZmMTg5NjE0Y2E5NzU5YjU2MmE5Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTgyY2QzN2Q0MjI3MGMwY2MxNDE0MzFjMzFhOWY5YjNmYWNiMWRjNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzEyYzIzMjRlZTBjYjMyOWY5MGMxMmM5MTczOWU1ZjdmYzUwYjdkMjJmYWJi
|
10
|
+
MzZkMmU3NWM5ODY1MmFkNDdmZjc0ZjkwMDg2YWU1MWJjOWZkNzk3M2M4ZTE4
|
11
|
+
NjBjZGViNzBlYjQ1MTUxNTIyOWVjNzg5ZDY1YjNmNWVmMTU5MDc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
31
|
-
|
32
|
-
|
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">
|
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 "
|
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 "
|
28
|
-
<%= link_to "
|
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">
|
@@ -171,7 +171,7 @@
|
|
171
171
|
</section>
|
172
172
|
|
173
173
|
<section>
|
174
|
-
<p>Click the "
|
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 "
|
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 "
|
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="/"><%=
|
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