Compare commits
5 Commits
182fbc78b4
...
88ebd1a820
Author | SHA1 | Date |
---|---|---|
Ezequiel Schwartzman | 88ebd1a820 | |
Ezequiel Schwartzman | 64e3dffc8a | |
Zequez | 31d111e5f0 | |
Zequez | fc03c9e5c2 | |
Zequez | 7c5246d8d3 |
450
Gemfile.lock
450
Gemfile.lock
|
@ -1,450 +0,0 @@
|
|||
GIT
|
||||
remote: git://github.com/Compass/compass-rails.git
|
||||
revision: 3e88f991150ffa39b0a539dffb3326248d18e6ad
|
||||
specs:
|
||||
compass-rails (2.0.4)
|
||||
compass (~> 1.0.0)
|
||||
sass-rails (< 5.1)
|
||||
sprockets (< 2.13)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
actionmailer (4.1.12)
|
||||
actionpack (= 4.1.12)
|
||||
actionview (= 4.1.12)
|
||||
mail (~> 2.5, >= 2.5.4)
|
||||
actionpack (4.1.12)
|
||||
actionview (= 4.1.12)
|
||||
activesupport (= 4.1.12)
|
||||
rack (~> 1.5.2)
|
||||
rack-test (~> 0.6.2)
|
||||
actionview (4.1.12)
|
||||
activesupport (= 4.1.12)
|
||||
builder (~> 3.1)
|
||||
erubis (~> 2.7.0)
|
||||
active_model_serializers (0.8.3)
|
||||
activemodel (>= 3.0)
|
||||
activeadmin (1.0.0.pre1)
|
||||
arbre (~> 1.0, >= 1.0.2)
|
||||
bourbon
|
||||
coffee-rails
|
||||
formtastic (~> 3.1)
|
||||
formtastic_i18n
|
||||
inherited_resources (~> 1.6)
|
||||
jquery-rails
|
||||
jquery-ui-rails (~> 5.0)
|
||||
kaminari (~> 0.15)
|
||||
rails (>= 3.2, < 5.0)
|
||||
ransack (~> 1.3)
|
||||
sass-rails
|
||||
activemodel (4.1.12)
|
||||
activesupport (= 4.1.12)
|
||||
builder (~> 3.1)
|
||||
activerecord (4.1.12)
|
||||
activemodel (= 4.1.12)
|
||||
activesupport (= 4.1.12)
|
||||
arel (~> 5.0.0)
|
||||
activesupport (4.1.12)
|
||||
i18n (~> 0.6, >= 0.6.9)
|
||||
json (~> 1.7, >= 1.7.7)
|
||||
minitest (~> 5.1)
|
||||
thread_safe (~> 0.1)
|
||||
tzinfo (~> 1.1)
|
||||
addressable (2.3.8)
|
||||
arbre (1.0.3)
|
||||
activesupport (>= 3.0.0)
|
||||
arel (5.0.1.20140414130214)
|
||||
auto_strip_attributes (2.0.6)
|
||||
activerecord (>= 3.0)
|
||||
awesome_print (1.6.1)
|
||||
aws-sdk (1.64.0)
|
||||
aws-sdk-v1 (= 1.64.0)
|
||||
aws-sdk-v1 (1.64.0)
|
||||
json (~> 1.4)
|
||||
nokogiri (>= 1.4.4)
|
||||
bcrypt (3.1.10)
|
||||
bourbon (4.2.3)
|
||||
sass (~> 3.4)
|
||||
thor
|
||||
breakpoint (2.5.0)
|
||||
sass (~> 3.3)
|
||||
sassy-maps (< 1.0.0)
|
||||
builder (3.2.2)
|
||||
cancancan (1.12.0)
|
||||
capybara (2.4.4)
|
||||
mime-types (>= 1.16)
|
||||
nokogiri (>= 1.3.3)
|
||||
rack (>= 1.0.0)
|
||||
rack-test (>= 0.5.4)
|
||||
xpath (~> 2.0)
|
||||
chunky_png (1.3.4)
|
||||
climate_control (0.0.3)
|
||||
activesupport (>= 3.0)
|
||||
cliver (0.3.2)
|
||||
cocaine (0.5.7)
|
||||
climate_control (>= 0.0.3, < 1.0)
|
||||
cocoon (1.2.6)
|
||||
coderay (1.1.0)
|
||||
coffee-rails (4.0.1)
|
||||
coffee-script (>= 2.2.0)
|
||||
railties (>= 4.0.0, < 5.0)
|
||||
coffee-script (2.4.1)
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.9.1.1)
|
||||
compass (1.0.3)
|
||||
chunky_png (~> 1.2)
|
||||
compass-core (~> 1.0.2)
|
||||
compass-import-once (~> 1.0.5)
|
||||
rb-fsevent (>= 0.9.3)
|
||||
rb-inotify (>= 0.9)
|
||||
sass (>= 3.3.13, < 3.5)
|
||||
compass-core (1.0.3)
|
||||
multi_json (~> 1.0)
|
||||
sass (>= 3.3.0, < 3.5)
|
||||
compass-import-once (1.0.5)
|
||||
sass (>= 3.2, < 3.5)
|
||||
crack (0.4.2)
|
||||
safe_yaml (~> 1.0.0)
|
||||
database_cleaner (1.4.1)
|
||||
devise (3.5.1)
|
||||
bcrypt (~> 3.0)
|
||||
orm_adapter (~> 0.1)
|
||||
railties (>= 3.2.6, < 5)
|
||||
responders
|
||||
thread_safe (~> 0.1)
|
||||
warden (~> 1.2.3)
|
||||
diff-lcs (1.2.5)
|
||||
domain_name (0.5.24)
|
||||
unf (>= 0.0.5, < 1.0.0)
|
||||
dotenv (2.0.2)
|
||||
dotenv-rails (2.0.2)
|
||||
dotenv (= 2.0.2)
|
||||
railties (~> 4.0)
|
||||
draper (2.1.0)
|
||||
actionpack (>= 3.0)
|
||||
activemodel (>= 3.0)
|
||||
activesupport (>= 3.0)
|
||||
request_store (~> 1.0)
|
||||
em-websocket (0.5.1)
|
||||
eventmachine (>= 0.12.9)
|
||||
http_parser.rb (~> 0.6.0)
|
||||
erubis (2.7.0)
|
||||
ethon (0.7.4)
|
||||
ffi (>= 1.3.0)
|
||||
eventmachine (1.0.7)
|
||||
execjs (2.5.2)
|
||||
factory_girl (4.5.0)
|
||||
activesupport (>= 3.0.0)
|
||||
factory_girl_rails (4.5.0)
|
||||
factory_girl (~> 4.5.0)
|
||||
railties (>= 3.0.0)
|
||||
ffi (1.9.10)
|
||||
font-awesome-sass (4.3.2.1)
|
||||
sass (~> 3.2)
|
||||
forgery (0.6.0)
|
||||
formatador (0.2.5)
|
||||
formtastic (3.1.3)
|
||||
actionpack (>= 3.2.13)
|
||||
formtastic_i18n (0.4.1)
|
||||
friendly_id (5.1.0)
|
||||
activerecord (>= 4.0.0)
|
||||
guard (2.12.8)
|
||||
formatador (>= 0.2.4)
|
||||
listen (>= 2.7, <= 4.0)
|
||||
lumberjack (~> 1.0)
|
||||
nenv (~> 0.1)
|
||||
notiffany (~> 0.0)
|
||||
pry (>= 0.9.12)
|
||||
shellany (~> 0.0)
|
||||
thor (>= 0.18.1)
|
||||
guard-compat (1.2.1)
|
||||
guard-livereload (2.4.0)
|
||||
em-websocket (~> 0.5)
|
||||
guard (~> 2.8)
|
||||
multi_json (~> 1.8)
|
||||
guard-rspec (4.6.2)
|
||||
guard (~> 2.1)
|
||||
guard-compat (~> 1.1)
|
||||
rspec (>= 2.99.0, < 4.0)
|
||||
haml (4.0.6)
|
||||
tilt
|
||||
haml-rails (0.9.0)
|
||||
actionpack (>= 4.0.1)
|
||||
activesupport (>= 4.0.1)
|
||||
haml (>= 4.0.6, < 5.0)
|
||||
html2haml (>= 1.0.1)
|
||||
railties (>= 4.0.1)
|
||||
has_scope (0.6.0)
|
||||
actionpack (>= 3.2, < 5)
|
||||
activesupport (>= 3.2, < 5)
|
||||
hike (1.2.3)
|
||||
html2haml (2.0.0)
|
||||
erubis (~> 2.7.0)
|
||||
haml (~> 4.0.0)
|
||||
nokogiri (~> 1.6.0)
|
||||
ruby_parser (~> 3.5)
|
||||
http (0.9.0)
|
||||
addressable (~> 2.3)
|
||||
http-cookie (~> 1.0)
|
||||
http-form_data (~> 1.0.1)
|
||||
http_parser.rb (~> 0.6.0)
|
||||
http-cookie (1.0.2)
|
||||
domain_name (~> 0.5)
|
||||
http-form_data (1.0.1)
|
||||
http_parser.rb (0.6.0)
|
||||
i18n (0.7.0)
|
||||
inherited_resources (1.6.0)
|
||||
actionpack (>= 3.2, < 5)
|
||||
has_scope (~> 0.6.0.rc)
|
||||
railties (>= 3.2, < 5)
|
||||
responders
|
||||
jquery-rails (3.1.3)
|
||||
railties (>= 3.0, < 5.0)
|
||||
thor (>= 0.14, < 2.0)
|
||||
jquery-turbolinks (2.1.0)
|
||||
railties (>= 3.1.0)
|
||||
turbolinks
|
||||
jquery-ui-rails (5.0.5)
|
||||
railties (>= 3.2.16)
|
||||
json (1.8.3)
|
||||
json_spec (1.1.4)
|
||||
multi_json (~> 1.0)
|
||||
rspec (>= 2.0, < 4.0)
|
||||
kaminari (0.16.3)
|
||||
actionpack (>= 3.0.0)
|
||||
activesupport (>= 3.0.0)
|
||||
kgio (2.9.3)
|
||||
listen (3.0.2)
|
||||
rb-fsevent (>= 0.9.3)
|
||||
rb-inotify (>= 0.9)
|
||||
lumberjack (1.0.9)
|
||||
mail (2.6.3)
|
||||
mime-types (>= 1.16, < 3)
|
||||
method_source (0.8.2)
|
||||
mime-types (2.6.1)
|
||||
mimemagic (0.3.0)
|
||||
mini_portile (0.6.2)
|
||||
minitest (5.7.0)
|
||||
multi_json (1.11.2)
|
||||
nenv (0.2.0)
|
||||
nokogiri (1.6.6.2)
|
||||
mini_portile (~> 0.6.0)
|
||||
notiffany (0.0.6)
|
||||
nenv (~> 0.1)
|
||||
shellany (~> 0.0)
|
||||
nprogress-rails (0.1.6.7)
|
||||
orm_adapter (0.5.0)
|
||||
paperclip (4.3.0)
|
||||
activemodel (>= 3.2.0)
|
||||
activesupport (>= 3.2.0)
|
||||
cocaine (~> 0.5.5)
|
||||
mime-types
|
||||
mimemagic (= 0.3.0)
|
||||
parallel (1.6.1)
|
||||
parallel_tests (1.6.0)
|
||||
parallel
|
||||
pg (0.18.2)
|
||||
poltergeist (1.6.0)
|
||||
capybara (~> 2.1)
|
||||
cliver (~> 0.3.1)
|
||||
multi_json (~> 1.0)
|
||||
websocket-driver (>= 0.2.0)
|
||||
polyamorous (1.2.0)
|
||||
activerecord (>= 3.0)
|
||||
pry (0.10.1)
|
||||
coderay (~> 1.1.0)
|
||||
method_source (~> 0.8.1)
|
||||
slop (~> 3.4)
|
||||
rack (1.5.5)
|
||||
rack-livereload (0.3.16)
|
||||
rack
|
||||
rack-test (0.6.3)
|
||||
rack (>= 1.0)
|
||||
rack-zippy (3.0.1)
|
||||
rails (4.1.12)
|
||||
actionmailer (= 4.1.12)
|
||||
actionpack (= 4.1.12)
|
||||
actionview (= 4.1.12)
|
||||
activemodel (= 4.1.12)
|
||||
activerecord (= 4.1.12)
|
||||
activesupport (= 4.1.12)
|
||||
bundler (>= 1.3.0, < 2.0)
|
||||
railties (= 4.1.12)
|
||||
sprockets-rails (~> 2.0)
|
||||
rails-api (0.4.0)
|
||||
actionpack (>= 3.2.11)
|
||||
railties (>= 3.2.11)
|
||||
rails_12factor (0.0.3)
|
||||
rails_serve_static_assets
|
||||
rails_stdout_logging
|
||||
rails_serve_static_assets (0.0.4)
|
||||
rails_stdout_logging (0.0.3)
|
||||
railties (4.1.12)
|
||||
actionpack (= 4.1.12)
|
||||
activesupport (= 4.1.12)
|
||||
rake (>= 0.8.7)
|
||||
thor (>= 0.18.1, < 2.0)
|
||||
raindrops (0.14.0)
|
||||
rake (10.4.2)
|
||||
ransack (1.6.6)
|
||||
actionpack (>= 3.0)
|
||||
activerecord (>= 3.0)
|
||||
activesupport (>= 3.0)
|
||||
i18n
|
||||
polyamorous (~> 1.2)
|
||||
rb-fsevent (0.9.5)
|
||||
rb-inotify (0.9.5)
|
||||
ffi (>= 0.5.0)
|
||||
redcarpet (3.3.2)
|
||||
request_store (1.2.0)
|
||||
responders (1.1.2)
|
||||
railties (>= 3.2, < 4.2)
|
||||
reverse_markdown (0.8.2)
|
||||
nokogiri
|
||||
rspec (3.3.0)
|
||||
rspec-core (~> 3.3.0)
|
||||
rspec-expectations (~> 3.3.0)
|
||||
rspec-mocks (~> 3.3.0)
|
||||
rspec-core (3.3.2)
|
||||
rspec-support (~> 3.3.0)
|
||||
rspec-expectations (3.3.1)
|
||||
diff-lcs (>= 1.2.0, < 2.0)
|
||||
rspec-support (~> 3.3.0)
|
||||
rspec-its (1.2.0)
|
||||
rspec-core (>= 3.0.0)
|
||||
rspec-expectations (>= 3.0.0)
|
||||
rspec-mocks (3.3.2)
|
||||
diff-lcs (>= 1.2.0, < 2.0)
|
||||
rspec-support (~> 3.3.0)
|
||||
rspec-rails (3.3.3)
|
||||
actionpack (>= 3.0, < 4.3)
|
||||
activesupport (>= 3.0, < 4.3)
|
||||
railties (>= 3.0, < 4.3)
|
||||
rspec-core (~> 3.3.0)
|
||||
rspec-expectations (~> 3.3.0)
|
||||
rspec-mocks (~> 3.3.0)
|
||||
rspec-support (~> 3.3.0)
|
||||
rspec-support (3.3.0)
|
||||
ruby_parser (3.7.0)
|
||||
sexp_processor (~> 4.1)
|
||||
safe_yaml (1.0.4)
|
||||
sass (3.4.16)
|
||||
sass-rails (5.0.3)
|
||||
railties (>= 4.0.0, < 5.0)
|
||||
sass (~> 3.1)
|
||||
sprockets (>= 2.8, < 4.0)
|
||||
sprockets-rails (>= 2.0, < 4.0)
|
||||
tilt (~> 1.1)
|
||||
sassy-maps (0.4.0)
|
||||
sass (~> 3.3)
|
||||
sexp_processor (4.6.0)
|
||||
shellany (0.0.1)
|
||||
slop (3.6.0)
|
||||
spring (1.3.6)
|
||||
spring-commands-rspec (1.0.4)
|
||||
spring (>= 0.9.1)
|
||||
sprockets (2.12.4)
|
||||
hike (~> 1.2)
|
||||
multi_json (~> 1.0)
|
||||
rack (~> 1.0)
|
||||
tilt (~> 1.1, != 1.3.0)
|
||||
sprockets-rails (2.3.2)
|
||||
actionpack (>= 3.0)
|
||||
activesupport (>= 3.0)
|
||||
sprockets (>= 2.8, < 4.0)
|
||||
susy (2.2.5)
|
||||
sass (>= 3.3.0, < 3.5)
|
||||
thor (0.19.1)
|
||||
thread_safe (0.3.5)
|
||||
tilt (1.4.1)
|
||||
turbolinks (2.5.3)
|
||||
coffee-rails
|
||||
typhoeus (0.7.2)
|
||||
ethon (>= 0.7.4)
|
||||
tzinfo (1.2.2)
|
||||
thread_safe (~> 0.1)
|
||||
uglifier (2.7.1)
|
||||
execjs (>= 0.3.0)
|
||||
json (>= 1.8.0)
|
||||
unf (0.1.4)
|
||||
unf_ext
|
||||
unf_ext (0.0.7.1)
|
||||
unicorn (4.9.0)
|
||||
kgio (~> 2.6)
|
||||
rack
|
||||
raindrops (~> 0.7)
|
||||
vcr (2.9.3)
|
||||
warden (1.2.3)
|
||||
rack (>= 1.0)
|
||||
webmock (1.21.0)
|
||||
addressable (>= 2.3.6)
|
||||
crack (>= 0.3.2)
|
||||
websocket-driver (0.6.2)
|
||||
websocket-extensions (>= 0.1.0)
|
||||
websocket-extensions (0.1.2)
|
||||
xpath (2.0.0)
|
||||
nokogiri (~> 1.3)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
active_model_serializers (~> 0.8.0)
|
||||
activeadmin (~> 1.0.0.pre1)
|
||||
auto_strip_attributes (~> 2.0)
|
||||
awesome_print
|
||||
aws-sdk (< 2.0)
|
||||
bourbon (~> 4.2)
|
||||
breakpoint
|
||||
cancancan
|
||||
capybara
|
||||
cocoon
|
||||
coffee-rails (~> 4.0.0)
|
||||
compass-rails!
|
||||
database_cleaner
|
||||
devise
|
||||
dotenv-rails
|
||||
draper
|
||||
factory_girl_rails
|
||||
font-awesome-sass (~> 4.3.0)
|
||||
forgery
|
||||
formtastic
|
||||
friendly_id
|
||||
guard-livereload
|
||||
guard-rspec
|
||||
haml-rails
|
||||
http
|
||||
jquery-rails
|
||||
jquery-turbolinks
|
||||
json_spec
|
||||
kaminari
|
||||
nokogiri
|
||||
nprogress-rails
|
||||
paperclip
|
||||
parallel_tests
|
||||
pg
|
||||
poltergeist
|
||||
rack-livereload
|
||||
rack-zippy
|
||||
rails (~> 4.1.12)
|
||||
rails-api
|
||||
rails_12factor
|
||||
redcarpet
|
||||
reverse_markdown
|
||||
rspec-its
|
||||
rspec-mocks
|
||||
rspec-rails
|
||||
sass (~> 3.4.0)
|
||||
sass-rails
|
||||
spring
|
||||
spring-commands-rspec
|
||||
susy (~> 2.0)
|
||||
turbolinks
|
||||
typhoeus
|
||||
tzinfo-data
|
||||
uglifier (>= 1.3.0)
|
||||
unicorn
|
||||
vcr
|
||||
webmock
|
|
@ -1,3 +1,12 @@
|
|||
# :warning: This project is deprecated :warning:
|
||||
|
||||
There is now an official mod portal at http://mods.factorio.com
|
||||
|
||||
Below is the old and obsolete README. You can still see [the old app running here](http://factorio-mods.herokuapp.com/), but FactorioMods.com now redirects to the
|
||||
official portal.
|
||||
|
||||
--------
|
||||
|
||||
# Factorio Mods [![Build Status](https://travis-ci.org/Zequez/FactorioMods.svg)](https://travis-ci.org/Zequez/FactorioMods)
|
||||
|
||||
[FactorioMods.com](http://factoriomods.com) it's an open
|
||||
|
|
|
@ -17,4 +17,5 @@
|
|||
//= require nprogress
|
||||
//= require nprogress-turbolinks
|
||||
//= require mods
|
||||
//= require official_app_banner
|
||||
//= require_tree ./inputs
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
banner = document.getElementById('official-app-banner')
|
||||
button = banner.querySelector('button')
|
||||
|
||||
|
||||
showBanner = -> banner.style.display = 'block'
|
||||
hideBanner = -> banner.style.display = 'none'
|
||||
|
||||
timeSinceLastDismissed = new Date().valueOf() - localStorage['dismissed-banner']
|
||||
|
||||
if !localStorage['dismissed-banner'] or timeSinceLastDismissed > 1000*60*60 # 1 hour
|
||||
showBanner()
|
||||
button.addEventListener 'click', ->
|
||||
localStorage['dismissed-banner'] = new Date().valueOf()
|
||||
hideBanner()
|
|
@ -46,6 +46,8 @@
|
|||
@import "static"
|
||||
@import "errors"
|
||||
|
||||
@import "official_app_banner"
|
||||
|
||||
$nprogress-color: $color-orange
|
||||
$nprogress-height: 5px
|
||||
$nprogress-zindex: 10100
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
#official-app-banner
|
||||
display: none
|
||||
position: absolute
|
||||
left: 0
|
||||
right: 0
|
||||
padding: $base-line-size 0
|
||||
background: rgba($color-orange, 0.75)
|
||||
box-shadow: 0 5px 15px rgba(#000, 0.5)
|
||||
text-align: center
|
||||
font-size: $font-x-larger
|
||||
line-height: $base-line-size*2
|
||||
color: white
|
||||
text-shadow: 0 2px 0 rgba(#000, 0.8)
|
||||
z-index: 9999
|
||||
a
|
||||
color: $color-blue
|
||||
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
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# https://github.com/plataformatec/devise/blob/master/app/controllers/devise/registrations_controller.rb
|
||||
class Users::RegistrationsController < Devise::RegistrationsController
|
||||
def create
|
||||
|
||||
end
|
||||
|
||||
# def create
|
||||
# super{ |res| @user = res }
|
||||
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
%link(rel="shortcut icon" href="/favicon.ico?v=2")
|
||||
= render partial: 'layouts/google_analytics'
|
||||
%body{class: body_controller_classes}
|
||||
#official-app-banner
|
||||
Hey! The official Factorio mods app is up and running!<br/>
|
||||
Stop using this one and go to <a href="http://mods.factorio.com">http://mods.factorio.com</a><br/>
|
||||
This app will be decomissioned soon! Thanks for your support!<br/>
|
||||
<button class='btn'>I understand, hide this message</button>
|
||||
.page-wrap
|
||||
.container
|
||||
= render partial: 'layouts/header'
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -16,16 +16,21 @@
|
|||
= f.actions do
|
||||
= f.action :submit, label: 'Login'
|
||||
|
||||
= semantic_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { id: 'new_registration' }) do |f|
|
||||
= f.semantic_errors
|
||||
= f.inputs do
|
||||
= f.input :email
|
||||
= f.input :name
|
||||
= f.input :password
|
||||
= f.input :remember_me, as: :boolean, required: false
|
||||
= redirect_to_input(f)
|
||||
= f.actions do
|
||||
= f.action :submit, label: 'Register'
|
||||
#new_registration
|
||||
%p.official-app-warning
|
||||
Account creation is disabled!<br/>
|
||||
Use the official app instead! <a href='http://mods.factorio.com'>http://mods.factorio.com</a>
|
||||
|
||||
-# = semantic_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { id: 'new_registration' }) do |f|
|
||||
-# = f.semantic_errors
|
||||
-# = f.inputs do
|
||||
-# = f.input :email
|
||||
-# = f.input :name
|
||||
-# = f.input :password
|
||||
-# = f.input :remember_me, as: :boolean, required: false
|
||||
-# = redirect_to_input(f)
|
||||
-# = f.actions do
|
||||
-# = f.action :submit, label: 'Register'
|
||||
|
||||
.devise-links
|
||||
= link_to 'Forgot your password?', new_password_path(resource_name)
|
||||
|
|
Loading…
Reference in New Issue