Disabled new mods creation and new releases creation

master
Zequez 2016-07-11 00:38:06 -03:00 committed by Ezequiel Schwartzman
parent 7c5246d8d3
commit fc03c9e5c2
6 changed files with 22 additions and 11 deletions

View File

@ -17,3 +17,9 @@
button
padding: $base-line-size/2
background: $color-blue
.official-app-warning
padding: $base-line-size/2
background: rgba($color-error, 0.35)
color: white
text-align: center

View File

@ -32,12 +32,12 @@ class ModsController < ApplicationController
end
def create
@mod = Mod.new mod_params
if @mod.save
redirect_to mod_url(@mod)
else
render :new
end
# @mod = Mod.new mod_params
# if @mod.save
# redirect_to mod_url(@mod)
# else
# render :new
# end
end
def edit

View File

@ -19,8 +19,8 @@
%li.nested-form.mod-versions
= f.semantic_fields_for :versions do |ff|
= render 'version_fields', f: ff
.nested-form-links.mod-versions-links
= link_to_add_association t('.add_version'), f, :versions
-# .nested-form-links.mod-versions-links
-# = link_to_add_association t('.add_version'), f, :versions
// Nested mod versions
// Nested mod files
// Nested mod files

View File

@ -9,5 +9,5 @@
%li.nested-form.mod-version-files
= f.semantic_fields_for :files do |ff|
= render 'file_fields', f: ff
.nested-form-links.mod-version-files-links
= link_to_add_association "Add file", f, :files
-# .nested-form-links.mod-version-files-links
-# = link_to_add_association "Add file", f, :files

View File

@ -2,4 +2,7 @@
%h1
= t('.header')
= link_to(@mod.name, @mod)
%p.official-app-warning
Adding new releases is disabled!<br/>
Use the official app instead! <a href='http://mods.factorio.com'>http://mods.factorio.com</a>
= render partial: 'form', locals: { mod: @mod }

View File

@ -1,3 +1,5 @@
- title t('.title')
%h1= t('.header')
= render partial: 'form', locals: { mod: @mod }
%p.official-app-warning
Submitting new mods is disabled!<br/>
Use the official app instead! <a href='http://mods.factorio.com'>http://mods.factorio.com</a>