phcscriptcdnpro 1.6.0 → 1.6.1
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/scriptcdn/authors_controller.rb +3 -3
- data/app/controllers/phcscriptcdnpro/scriptcdn/urls_controller.rb +1 -1
- data/app/views/phcscriptcdnpro/scriptcdn/authors/edit.html.erb +1 -1
- data/app/views/phcscriptcdnpro/scriptcdn/authors/index.html.erb +2 -2
- data/app/views/phcscriptcdnpro/scriptcdn/authors/new.html.erb +1 -1
- 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: 884c0891bd5807b5ee7758048a3ab74781b300a1
|
4
|
+
data.tar.gz: 66ca868f52a84dace99030a76344b16a544ac3fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 781626642db3105e959db8c4127d01c716cc8a9f67dbec85328b362ff19d6c1d40ca0fa62cb6e0c3769433f1b01b065e96080bb05352ddc54d56c4306d6fae7c
|
7
|
+
data.tar.gz: 53cfe8a7e86238ca3642b6821cc8ed359edd08fc163e1784f38269f72a58b3b2587145d8b3ce627e8c06829075f464751661d9b755b90fdd3a18b0c6c0bd0235
|
@@ -31,7 +31,7 @@ module Phcscriptcdnpro
|
|
31
31
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
32
32
|
@scriptcdn_author = @scriptcdn_main.authors.create(scriptcdn_author_params)
|
33
33
|
if @scriptcdn_author.save
|
34
|
-
redirect_to
|
34
|
+
redirect_to scriptcdn_main_authors_url, notice: 'Author was successfully created.'
|
35
35
|
else
|
36
36
|
render :new
|
37
37
|
end
|
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
|
|
40
40
|
# PATCH/PUT Author
|
41
41
|
def update
|
42
42
|
if @scriptcdn_author.update(scriptcdn_author_params)
|
43
|
-
redirect_to
|
43
|
+
redirect_to scriptcdn_main_authors_url, notice: 'Author was successfully updated.'
|
44
44
|
else
|
45
45
|
render :edit
|
46
46
|
end
|
@@ -51,7 +51,7 @@ module Phcscriptcdnpro
|
|
51
51
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
52
52
|
@scriptcdn_author = @scriptcdn_main.authors.find(params[:id])
|
53
53
|
@scriptcdn_author.destroy
|
54
|
-
redirect_to
|
54
|
+
redirect_to scriptcdn_main_authors_url, notice: 'Author was successfully destroyed.'
|
55
55
|
end
|
56
56
|
|
57
57
|
private
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<div class="page-bar">
|
7
7
|
|
8
8
|
<ul class="page-breadcrumb">
|
9
|
-
<li><%= link_to "Script Author", phcscriptcdnpro.
|
9
|
+
<li><%= link_to "Script Author", phcscriptcdnpro.scriptcdn_main_authors_path %><i class="fa fa-circle"></i></li>
|
10
10
|
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
11
11
|
</ul>
|
12
12
|
|
@@ -48,8 +48,8 @@
|
|
48
48
|
<tbody>
|
49
49
|
<% @scriptcdn_authors.each do |scriptcdn_author| %>
|
50
50
|
<tr>
|
51
|
-
<td><%= scriptcdn_author.
|
52
|
-
<td><%= scriptcdn_author.
|
51
|
+
<td><%= scriptcdn_author.authorfirstname %></td>
|
52
|
+
<td><%= scriptcdn_author.authorlastname %></td>
|
53
53
|
</tr>
|
54
54
|
<% end %>
|
55
55
|
</tbody>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<div class="page-bar">
|
7
7
|
|
8
8
|
<ul class="page-breadcrumb">
|
9
|
-
<li><%= link_to "Script Author", phcscriptcdnpro.
|
9
|
+
<li><%= link_to "Script Author", phcscriptcdnpro.scriptcdn_main_authors_path %><i class="fa fa-circle"></i></li>
|
10
10
|
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
11
11
|
</ul>
|
12
12
|
|