-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:concerto/concerto
- Loading branch information
Showing
26 changed files
with
282 additions
and
293 deletions.
There are no files selected for viewing
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
app/assets/stylesheets/plugins.css.scss → ...ets/stylesheets/concerto_plugins.css.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Place all the styles related to the plugins controller here. | ||
// Place all the styles related to the ConcertoPlugins controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
class ConcertoPluginsController < ApplicationController | ||
# GET /concerto_plugins | ||
# GET /concerto_plugins.json | ||
def index | ||
@concerto_plugins = ConcertoPlugin.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.json { render json: @concerto_plugins } | ||
end | ||
end | ||
|
||
# GET /concerto_plugins/1 | ||
# GET /concerto_plugins/1.json | ||
def show | ||
@concerto_plugin = ConcertoPlugin.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.json { render json: @concerto_plugin } | ||
end | ||
end | ||
|
||
# GET /concerto_plugins/new | ||
# GET /concerto_plugins/new.json | ||
def new | ||
@concerto_plugin = ConcertoPlugin.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.json { render json: @concerto_plugin } | ||
end | ||
end | ||
|
||
# GET /concerto_plugins/1/edit | ||
def edit | ||
@concerto_plugin = ConcertoPlugin.find(params[:id]) | ||
end | ||
|
||
# POST /concerto_plugins | ||
# POST /concerto_plugins.json | ||
def create | ||
@concerto_plugin = ConcertoPlugin.new(params[:concerto_plugin]) | ||
|
||
respond_to do |format| | ||
if @concerto_plugin.save | ||
format.html { redirect_to @concerto_plugin, notice: 'Concerto plugin was successfully created.' } | ||
format.json { render json: @concerto_plugin, status: :created, location: @concerto_plugin } | ||
else | ||
format.html { render action: "new" } | ||
format.json { render json: @concerto_plugin.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /concerto_plugins/1 | ||
# PUT /concerto_plugins/1.json | ||
def update | ||
@concerto_plugin = ConcertoPlugin.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @concerto_plugin.update_attributes(params[:concerto_plugin]) | ||
format.html { redirect_to @concerto_plugin, notice: 'Concerto plugin was successfully updated.' } | ||
format.json { head :no_content } | ||
else | ||
format.html { render action: "edit" } | ||
format.json { render json: @concerto_plugin.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /concerto_plugins/1 | ||
# DELETE /concerto_plugins/1.json | ||
def destroy | ||
@concerto_plugin = ConcertoPlugin.find(params[:id]) | ||
@concerto_plugin.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to concerto_plugins_url } | ||
format.json { head :no_content } | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module ConcertoPluginsHelper | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class Plugin < ActiveRecord::Base | ||
class ConcertoPlugin < ActiveRecord::Base | ||
attr_accessible :enabled, :gem_name, :gem_version, :installed, :module_name, :name, :source, :source_url | ||
end |
8 changes: 4 additions & 4 deletions
8
app/views/plugins/_form.html.erb → app/views/concerto_plugins/_form.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<h1>Editing concerto_plugin</h1> | ||
|
||
<%= render 'form' %> | ||
<%= link_to 'Show', @concerto_plugin %> | | ||
<%= link_to 'Back', concerto_plugins_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<h1>Listing concerto_plugins</h1> | ||
|
||
<table> | ||
<tr> | ||
<th>Name</th> | ||
<th>Module name</th> | ||
<th>Enabled</th> | ||
<th>Gem name</th> | ||
<th>Gem version</th> | ||
<th>Source</th> | ||
<th>Source url</th> | ||
<th>Installed</th> | ||
<th></th> | ||
<th></th> | ||
<th></th> | ||
</tr> | ||
|
||
<% @concerto_plugins.each do |concerto_plugin| %> | ||
<tr> | ||
<td><%= concerto_plugin.name %></td> | ||
<td><%= concerto_plugin.module_name %></td> | ||
<td><%= concerto_plugin.enabled %></td> | ||
<td><%= concerto_plugin.gem_name %></td> | ||
<td><%= concerto_plugin.gem_version %></td> | ||
<td><%= concerto_plugin.source %></td> | ||
<td><%= concerto_plugin.source_url %></td> | ||
<td><%= concerto_plugin.installed %></td> | ||
<td><%= link_to 'Show', concerto_plugin %></td> | ||
<td><%= link_to 'Edit', edit_concerto_plugin_path(concerto_plugin) %></td> | ||
<td><%= link_to 'Destroy', concerto_plugin, confirm: 'Are you sure?', method: :delete %></td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
|
||
<br /> | ||
|
||
<%= link_to 'New Concerto plugin', new_concerto_plugin_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<h1>New concerto_plugin</h1> | ||
|
||
<%= render 'form' %> | ||
<%= link_to 'Back', concerto_plugins_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<p id="notice"><%= notice %></p> | ||
|
||
<p> | ||
<b>Name:</b> | ||
<%= @concerto_plugin.name %> | ||
</p> | ||
|
||
<p> | ||
<b>Module name:</b> | ||
<%= @concerto_plugin.module_name %> | ||
</p> | ||
|
||
<p> | ||
<b>Enabled:</b> | ||
<%= @concerto_plugin.enabled %> | ||
</p> | ||
|
||
<p> | ||
<b>Gem name:</b> | ||
<%= @concerto_plugin.gem_name %> | ||
</p> | ||
|
||
<p> | ||
<b>Gem version:</b> | ||
<%= @concerto_plugin.gem_version %> | ||
</p> | ||
|
||
<p> | ||
<b>Source:</b> | ||
<%= @concerto_plugin.source %> | ||
</p> | ||
|
||
<p> | ||
<b>Source url:</b> | ||
<%= @concerto_plugin.source_url %> | ||
</p> | ||
|
||
<p> | ||
<b>Installed:</b> | ||
<%= @concerto_plugin.installed %> | ||
</p> | ||
|
||
|
||
<%= link_to 'Edit', edit_concerto_plugin_path(@concerto_plugin) %> | | ||
<%= link_to 'Back', concerto_plugins_path %> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.