burp_cms 1.6.0 → 1.7.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
- YmViZTFhYWFiMGRkM2VhY2Y5YWZmMTg5NjE0Y2E5NzU5YjU2MmE5Yg==
4
+ MDkxN2IyODRlZDg0ZTIyNWRhNzNiNTgxNDNhODcyZDkzMjBiYzM1OQ==
5
5
  data.tar.gz: !binary |-
6
- NTgyY2QzN2Q0MjI3MGMwY2MxNDE0MzFjMzFhOWY5YjNmYWNiMWRjNQ==
6
+ ZGViNjNiMGI1MGRkMTczNGVjMmYwMTk1OGIxZjgyMTdlMDFiNjExMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzEyYzIzMjRlZTBjYjMyOWY5MGMxMmM5MTczOWU1ZjdmYzUwYjdkMjJmYWJi
10
- MzZkMmU3NWM5ODY1MmFkNDdmZjc0ZjkwMDg2YWU1MWJjOWZkNzk3M2M4ZTE4
11
- NjBjZGViNzBlYjQ1MTUxNTIyOWVjNzg5ZDY1YjNmNWVmMTU5MDc=
9
+ MGEwYjZjZTg3OGFhMmZhMzUyODA1MmJlYjNkY2FhOGVjZjJhOTAwN2IzNzk3
10
+ YjQ2MjFmMTdkNDNiMjAyOTI3NDUwMTQxMjNlNTQ4OGNmZDA3ODExMTU2Y2Qx
11
+ ZDc5MzAxNDdmNzE1NzU0YTBmNTk0ZGY2OTY2MDYxYzY5MzQ1Y2E=
12
12
  data.tar.gz: !binary |-
13
- NzQ4ODIxZDc0Yzg0NDcwM2QyZGQzZWNmZGQ4NzIwYjg3MGY2Yzg4M2RmZjJk
14
- MzcyMTNlYzU0ZTBmMDEyZmRhY2ZhMTlhZjhjY2VjZmEyMjE4MDY3ZGJkZWUw
15
- OTg0ZDNiODFhNDUyOTI1MDA1YjRmYWJlOWU4Y2Y1NDEwMTIxZDM=
13
+ YmUyZmQ0YjQxMmE5MzNjNWI5NWI0MGUxNjRjZmEwMjczMDFkMzNlMWQ0ZTc0
14
+ ZDcyYmNlYWViMTFkOWEzNzZiN2JkMzAzZWZmMGRjYzY2ODYyN2QzMGFkNTVm
15
+ NTRiYTU4YjkwNjI4MDQ1ZDI2OWNkZWYzNDJhZGVkZDY2NTUwYjQ=
@@ -9,6 +9,7 @@
9
9
  * compiled file, but it's generally better to create a new file per style scope.
10
10
  *
11
11
  *= require_self
12
+ *= require font-awesome
12
13
  *= require_tree .
13
14
  */
14
15
 
@@ -12,5 +12,14 @@
12
12
  white-space: nowrap;
13
13
  text-overflow: ellipsis;
14
14
  }
15
+
16
+ .fa-exclamation-circle {
17
+ display: none;
18
+ }
19
+
20
+ .not-linked .fa-exclamation-circle {
21
+ color: rgb(255,200,0);
22
+ display: inline;
23
+ }
15
24
 
16
25
  }
@@ -4,6 +4,9 @@ module Burp
4
4
  def index
5
5
  access.may_view_page_list! do
6
6
  @pages = PageModel.all
7
+ @urls = Menu.all.map do |menu|
8
+ menu.all_children.map {|child| child.is_a?(Group) ? nil : child.url}
9
+ end.flatten.compact
7
10
  end
8
11
  end
9
12
 
@@ -44,8 +44,8 @@
44
44
  </thead>
45
45
  <tbody>
46
46
  <% @pages.sort{|a,b| a.path <=> b.path}.each do |page| %>
47
- <tr>
48
- <td><%= page.title %></td>
47
+ <tr class="<%= @urls.include?(page.path) ? "" : "not-linked" %>">
48
+ <td><%= page.title %> <i title="This page is not linked in any menu" class="fa fa-exclamation-circle"></i></td>
49
49
  <td><%= link_to "#{page.path}", page.path, :title => "Click to go to page" %></td>
50
50
  <td><%= link_to "Edit", edit_page_path(page), :title => "Click to edit", :class => "edit-page-link" %></td>
51
51
  </tr>
@@ -5,6 +5,7 @@ module Burp
5
5
  require 'jquery-rails'
6
6
  require 'jquery-ui-rails'
7
7
  require 'jquery-migrate-rails'
8
+ require 'font-awesome-less'
8
9
 
9
10
  isolate_namespace Burp
10
11
 
@@ -1,3 +1,3 @@
1
1
  module Burp
2
- VERSION = "1.6.0"
2
+ VERSION = "1.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: burp_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darwin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-14 00:00:00.000000000 Z
11
+ date: 2014-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-rails
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - ! '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: font-awesome-less
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ~>
144
+ - !ruby/object:Gem::Version
145
+ version: '4.2'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: '4.2'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: rails
141
155
  requirement: !ruby/object:Gem::Requirement