forked from Bnei-Baruch/kmedia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/frontend' into frontend
- Loading branch information
Showing
69 changed files
with
1,362 additions
and
1,257 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
//= require jquery | ||
//= require modernizr.custom | ||
//= require jquery_ujs | ||
//= require bootstrap | ||
//= require_self | ||
//= require_tree ./common | ||
//= require_tree ./user | ||
//= require bootstrap |
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 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
class Admin::FileAssetsController < Admin::ApplicationController | ||
def index | ||
@file_assets = FileAsset.page(params[:page]) | ||
end | ||
|
||
def show | ||
@file_asset = FileAsset.find(params[:id]) | ||
end | ||
|
||
def new | ||
@file_asset = FileAsset.new | ||
end | ||
|
||
def create | ||
@file_asset = FileAsset.new(params[:file]) | ||
if @file_asset.save | ||
redirect_to [:admin, @files], :notice => "Successfully created file." | ||
else | ||
render :action => 'new' | ||
end | ||
end | ||
|
||
def edit | ||
@file_asset = FileAsset.find(params[:id]) | ||
end | ||
|
||
def update | ||
@file_asset = FileAsset.find(params[:id]) | ||
if @file_asset.update_attributes(params[:file]) | ||
redirect_to [:admin, @files], :notice => "Successfully updated file." | ||
else | ||
render :action => 'edit' | ||
end | ||
end | ||
|
||
def destroy | ||
@file_asset = FileAsset.find(params[:id]) | ||
@file_asset.destroy | ||
redirect_to admin_filess_url, :notice => "Successfully destroyed file." | ||
end | ||
end |
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
Oops, something went wrong.