kuppayam 0.1.32 → 0.1.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/kuppayam/images/_form.html.erb +10 -0
- data/lib/kuppayam/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c53b2f08fdf9206607d636afd374a7583bcf1ec73885ab7d633a06a549ca29bc
|
4
|
+
data.tar.gz: 9b7fff7411742c5ab0f58eacbd916ddeee60b7ce46a0ef283f8c266b34c74497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2290b8fb6b410dfb6967a91585ce36dce136ad2ff4bc0b44611102a2e5dabad70569fa56544461b6f29b1601abfdfeb16f474c56a81335838e236e493e9ba10c
|
7
|
+
data.tar.gz: 40597c3ca86f2928e0ffaa9e0289dc028a3db55145981db856373c0ff40d7f3f4ae311f31f904df69137d1bd5383dc100b13ff009c91f57155d0868781ee5810
|
@@ -38,6 +38,16 @@
|
|
38
38
|
<%= @image.errors[:base].to_sentence %>
|
39
39
|
</div>
|
40
40
|
|
41
|
+
<% if @image.errors.any? && @current_user && @current_user.super_admin? %>
|
42
|
+
<div class="alert alert-danger">
|
43
|
+
<ul>
|
44
|
+
<% @image.errors.full_messages.each do |i| %>
|
45
|
+
<li><%= raw i %></li>
|
46
|
+
<% end %>
|
47
|
+
</ul>
|
48
|
+
</div>
|
49
|
+
<% end %>
|
50
|
+
|
41
51
|
<%= hidden_field_tag :faction, @image.new_record? ? main_app.images_path : main_app.image_path(@image) %>
|
42
52
|
|
43
53
|
<%= hidden_field_tag :fmethod, @image.new_record? ? "POST" : "PUT" %>
|
data/lib/kuppayam/version.rb
CHANGED