promethee 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afe07937f2dffb299e29419481a2187c108ce3bf
|
4
|
+
data.tar.gz: acd5efd6d2d27bc2759122078858cba6501ed009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bcca1ac90003d7c745e2e4ac303d42a8a70dd9adbe8d1ceb2e105985f7f70036d6aaf704e7e8c7146fe113acacf9eaa4be141bbc8eec1ea861a51829cd13a9a
|
7
|
+
data.tar.gz: 8c33c3022e27b2a57c60b164b20550e915104cf04a5adb996f95e173c60948f9f5ce59f21756061a18e9885b293c661d4e2e4a4a5dfbb5a7608f4ad9e34aa980
|
@@ -1,4 +1,21 @@
|
|
1
|
+
<%
|
2
|
+
except ||= []
|
3
|
+
except = [except] unless except.is_a? Array
|
4
|
+
except.map! { |button| button.to_s.to_sym }
|
5
|
+
|
6
|
+
only ||= []
|
7
|
+
only = [only] unless only.is_a? Array
|
8
|
+
only.map! { |button| button.to_s.to_sym }
|
9
|
+
|
10
|
+
buttons = [:edit, :remove].map{ |button| [button, (only.empty? || button.in?(only)) && !button.in?(except)] }.to_h
|
11
|
+
%>
|
12
|
+
|
1
13
|
<div class="pull-right">
|
2
|
-
|
3
|
-
|
4
|
-
|
14
|
+
<% if buttons[:edit] %>
|
15
|
+
<span ng-click="editing = !editing" class="promethee-editor__button"><%= fa_icon 'pencil-square' %></span>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<% if buttons[:remove] %>
|
19
|
+
<span ng-click="remove(component, components)" class="promethee-editor__button"><%= fa_icon 'window-close' %></span>
|
20
|
+
<% end %>
|
21
|
+
</div>
|