phcscriptcdnpro 5.7.1 → 5.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +1 -1
- data/app/views/phcscriptcdnpro/frontend/listings/show.html.erb +4 -1
- data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +12 -5
- data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +1 -0
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c40d05c13e557ff47bca3fa19e18b4f62d52bd66
|
4
|
+
data.tar.gz: a1e0c791dd16a6f431c6d8d9261de4cf1b251de4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75abc671485b65d86be028e2c329918a8f3c939952547dd75bdec16b8a87f43ac0fae8eee068d93dbd3a0848d79ebfe2f0e7482f1da8899b117863e71f5c8180
|
7
|
+
data.tar.gz: a4fdbd4ff0de064790d5b31f203ed92382f818b346dc7269e56b0fe6376a36553f8a947dd7b2f7d815ba13f4030e55893d0358bf06ac3aa91de4bd6b62cd8521
|
@@ -67,7 +67,7 @@ module Phcscriptcdnpro
|
|
67
67
|
|
68
68
|
# Whitelist
|
69
69
|
def script_listing_params
|
70
|
-
params.require(:script_listing).permit(:scripttitle, :scriptdescription, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlastestrelease, :scriptbetarelease, :scriptstatus, :version_id, :author_id, :licence_id)
|
70
|
+
params.require(:script_listing).permit(:scripttitle, :scriptdescription, :descriptionsource, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlastestrelease, :scriptbetarelease, :scriptstatus, :version_id, :author_id, :licence_id)
|
71
71
|
end
|
72
72
|
|
73
73
|
end
|
@@ -38,7 +38,10 @@
|
|
38
38
|
<% end %>
|
39
39
|
</li>
|
40
40
|
</ul>
|
41
|
-
<div
|
41
|
+
<div>
|
42
|
+
<%= @script_listings_single.scriptdescription.html_safe %>
|
43
|
+
<small>Source: <i><%= @script_listings_single.descriptionsource %></i></small>
|
44
|
+
</div>
|
42
45
|
|
43
46
|
<div class="row">
|
44
47
|
<div class="col-md-8 col-sm-8">
|
@@ -4,23 +4,30 @@
|
|
4
4
|
|
5
5
|
<div class="form-group field_with_error">
|
6
6
|
<%= f.label :scripttitle, "Script Title" %>
|
7
|
-
<%= f.text_field :scripttitle, placeholder: "Script
|
7
|
+
<%= f.text_field :scripttitle, placeholder: "Script Title", class: "form-control" %>
|
8
8
|
</div>
|
9
9
|
<div class="form-group field_with_error">
|
10
10
|
<%= f.label :scriptdescription, "Script Description" %>
|
11
|
-
<%= f.text_area :scriptdescription, placeholder: "Script
|
11
|
+
<%= f.text_area :scriptdescription, placeholder: "Script Description", class: "form-control" %>
|
12
|
+
</div>
|
13
|
+
<div class="form-group field_with_error">
|
14
|
+
<%= f.label :descriptionsource, "Script Source" %>
|
15
|
+
<%= f.text_area :descriptionsource, placeholder: "Script Source", class: "form-control" %>
|
12
16
|
</div>
|
13
17
|
<div class="form-group field_with_error">
|
14
18
|
<%= f.label :scriptwebsite, "Script Website" %>
|
15
|
-
<%= f.text_field :scriptwebsite, placeholder: "Script
|
19
|
+
<%= f.text_field :scriptwebsite, placeholder: "Script Website", class: "form-control" %>
|
16
20
|
</div>
|
21
|
+
|
22
|
+
|
23
|
+
|
17
24
|
<div class="form-group field_with_error">
|
18
25
|
<%= f.label :scripttwitter, "Script Twitter" %>
|
19
|
-
<%= f.text_field :scripttwitter, placeholder: "Script
|
26
|
+
<%= f.text_field :scripttwitter, placeholder: "Script Twitter Address", class: "form-control" %>
|
20
27
|
</div>
|
21
28
|
<div class="form-group field_with_error">
|
22
29
|
<%= f.label :scriptgithub, "Script Github" %>
|
23
|
-
<%= f.text_field :scriptgithub, placeholder: "Script
|
30
|
+
<%= f.text_field :scriptgithub, placeholder: "Script Github Address", class: "form-control" %>
|
24
31
|
</div>
|
25
32
|
<div class="form-group field_with_error">
|
26
33
|
<%= f.label :scriptinitialrelease, "Initial Release" %>
|