Disabled new mods creation and new releases creation
parent
7c5246d8d3
commit
fc03c9e5c2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue