Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Illuna-Minecraft
illuna-minecraft.tk
Commits
fb3d73fc
Commit
fb3d73fc
authored
Aug 30, 2016
by
Milan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup basic blog functionallity
parent
dbd3dd9f
Changes
41
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
38791 additions
and
1161 deletions
+38791
-1161
app/assets/javascripts/blogposts.coffee
app/assets/javascripts/blogposts.coffee
+0
-0
app/assets/stylesheets/_application.scss
app/assets/stylesheets/_application.scss
+3
-112
app/assets/stylesheets/blogposts.scss
app/assets/stylesheets/blogposts.scss
+1
-1
app/assets/stylesheets/bootstrap-variables.scss
app/assets/stylesheets/bootstrap-variables.scss
+0
-866
app/assets/stylesheets/header.scss
app/assets/stylesheets/header.scss
+0
-148
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+0
-8
app/controllers/blog_controller.rb
app/controllers/blog_controller.rb
+0
-2
app/controllers/blogposts_controller.rb
app/controllers/blogposts_controller.rb
+33
-0
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+12
-0
app/helpers/blog_helper.rb
app/helpers/blog_helper.rb
+0
-2
app/helpers/blogposts_helper.rb
app/helpers/blogposts_helper.rb
+2
-0
app/views/admin/log.html.erb
app/views/admin/log.html.erb
+56
-0
app/views/admin/login.html.erb
app/views/admin/login.html.erb
+2
-0
app/views/blogposts/_form.html.erb
app/views/blogposts/_form.html.erb
+18
-0
app/views/blogposts/edit.html.erb
app/views/blogposts/edit.html.erb
+3
-0
app/views/blogposts/index.html.erb
app/views/blogposts/index.html.erb
+11
-0
app/views/blogposts/new.html.erb
app/views/blogposts/new.html.erb
+3
-0
app/views/blogposts/show.html.erb
app/views/blogposts/show.html.erb
+8
-0
app/views/home/hosting.html.erb
app/views/home/hosting.html.erb
+102
-0
app/views/layouts/application.html.erb
app/views/layouts/application.html.erb
+3
-1
config/database.yml
config/database.yml
+45
-21
config/initializers/simple_form.rb
config/initializers/simple_form.rb
+165
-0
config/locales/simple_form.en.yml
config/locales/simple_form.en.yml
+31
-0
config/routes.rb
config/routes.rb
+7
-0
db/schema.rb
db/schema.rb
+25
-0
lib/templates/erb/scaffold/_form.html.erb
lib/templates/erb/scaffold/_form.html.erb
+13
-0
public/assets/.sprockets-manifest-84dd85a6d4a65fcd5f64eaf2c713d302.json
....sprockets-manifest-84dd85a6d4a65fcd5f64eaf2c713d302.json
+1
-0
public/assets/application-5c0d58384c13012ad8803d50f5ebe50e75bd85de94793f0951ec07d87dedba1e.js
...13012ad8803d50f5ebe50e75bd85de94793f0951ec07d87dedba1e.js
+13791
-0
public/assets/application-5c0d58384c13012ad8803d50f5ebe50e75bd85de94793f0951ec07d87dedba1e.js.gz
...12ad8803d50f5ebe50e75bd85de94793f0951ec07d87dedba1e.js.gz
+0
-0
public/assets/application-866ee116feeda99b7b93a35ce38aedde27709d89733540b28ebede80f308b736.js
...eda99b7b93a35ce38aedde27709d89733540b28ebede80f308b736.js
+12213
-0
public/assets/application-866ee116feeda99b7b93a35ce38aedde27709d89733540b28ebede80f308b736.js.gz
...99b7b93a35ce38aedde27709d89733540b28ebede80f308b736.js.gz
+0
-0
public/assets/application-b4816741c9f0b8bdbf9ad551d4051010ec84fe701adbc03cbaf657f24a7b35be.js
...f0b8bdbf9ad551d4051010ec84fe701adbc03cbaf657f24a7b35be.js
+12212
-0
public/assets/application-b4816741c9f0b8bdbf9ad551d4051010ec84fe701adbc03cbaf657f24a7b35be.js.gz
...8bdbf9ad551d4051010ec84fe701adbc03cbaf657f24a7b35be.js.gz
+0
-0
public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css
...c1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css
+0
-0
public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css.gz
...149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css.gz
+0
-0
public/assets/application-fb4cac3ff57213e47d982da96f8d6ad196477332191360a61da1acad89e0847d.css
...213e47d982da96f8d6ad196477332191360a61da1acad89e0847d.css
+1
-0
public/assets/application-fb4cac3ff57213e47d982da96f8d6ad196477332191360a61da1acad89e0847d.css.gz
...e47d982da96f8d6ad196477332191360a61da1acad89e0847d.css.gz
+0
-0
test/controllers/admin_controller_test.rb
test/controllers/admin_controller_test.rb
+9
-0
test/controllers/blogposts_controller_test.rb
test/controllers/blogposts_controller_test.rb
+7
-0
test/fixtures/blogposts.yml
test/fixtures/blogposts.yml
+7
-0
test/models/blogpost_test.rb
test/models/blogpost_test.rb
+7
-0
No files found.
app/assets/javascripts/blog.coffee
→
app/assets/javascripts/blog
posts
.coffee
View file @
fb3d73fc
File moved
app/assets/stylesheets/_application.scss
View file @
fb3d73fc
@import
'perfect-scrollbar'
;
//@import 'color-variables';
//@import 'bootstrap-complete';
//@import 'mixins';
@import
'color-variables'
;
@import
'bootstrap-complete'
;
@import
'mixins'
;
// core
@import
'media-box'
;
@import
'entypo'
;
@import
'icons'
;
@import
'mentions'
;
@import
'animations'
;
@import
'flash_messages'
;
@import
'sprites'
;
@import
'hovercard'
;
@import
'base'
;
@import
'interactions'
;
@import
'spinner'
;
@import
'timeago'
;
@import
'vendor/fileuploader'
;
@import
'vendor/autoSuggest'
;
@import
'typeahead'
;
@import
'colors'
;
@import
'card-footer'
;
// font overrides
@import
'typography'
;
// layout
@import
'sidebar'
;
// home
@import
'home'
;
// login
@import
'login'
;
@import
'registration'
;
@import
'forms'
;
// terms
@import
'terms'
;
// profile and settings pages
@import
'settings'
;
// new SPV
@import
'header'
;
@import
'footer'
;
@import
'opengraph'
;
@import
'single-post-view'
;
@import
'poll'
;
// map
@import
'leaflet'
;
@import
'map'
;
// conversations
@import
'conversations'
;
// publisher
@import
'publisher'
;
@import
'aspects'
;
@import
'markdown-editor'
;
// bookmarklet
@import
'bookmarklet'
;
// notifications
@import
'notifications'
;
// help
@import
'help'
;
// getting started
@import
'getting-started'
;
// people
@import
'people'
;
@import
'invitations'
;
@import
'profile'
;
// stream
@import
'tag'
;
@import
'stream'
;
@import
'stream_element'
;
@import
'comments'
;
@import
'diaspora_jsxc'
;
@import
'chat'
;
@import
'markdown-content'
;
@import
'oembed'
;
@import
'post-content'
;
// contacts
@import
'contacts'
;
@import
'navbar_left'
;
// code
@import
'code'
;
@import
'highlightjs/github'
;
// statistics
@import
'statistics'
;
// gallery
@import
'blueimp-gallery'
;
@import
'blueimp-gallery/blueimp-gallery-indicator'
;
@import
'gallery'
;
// settings
@import
'user_applications'
;
// OpenID Connect (API)
@import
'openid_connect_error_page'
;
app/assets/stylesheets/blog.scss
→
app/assets/stylesheets/blog
posts
.scss
View file @
fb3d73fc
// Place all the styles related to the blog controller here.
// Place all the styles related to the blog
posts
controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
app/assets/stylesheets/bootstrap-variables.scss
deleted
100644 → 0
View file @
dbd3dd9f
This diff is collapsed.
Click to expand it.
app/assets/stylesheets/header.scss
deleted
100644 → 0
View file @
dbd3dd9f
.navbar.navbar-fixed-top
{
border-bottom
:
none
;
box-shadow
:
1px
0
2px
black
;
a
:focus
{
outline
:
0
none
;
}
.navbar-brand
{
font-weight
:
bold
;
font-size
:
$font-size-h3
;
}
@media
(
max-width
:
$grid-float-breakpoint-max
)
{
.navbar-header
>
.nav
li
{
display
:
inline-block
!
important
;
}
.nav-badge
{
color
:
$navbar-inverse-link-color
;
padding-left
:
12px
;
padding-right
:
12px
;
&
:hover
{
color
:
$navbar-inverse-link-hover-color
;
}
&
:hover
,
&
:focus
{
background-color
:
transparent
;
}
}
#navbar-collapse
{
.form-group
,
.twitter-typeahead
{
display
:
block
!
important
;
margin-bottom
:
0
;
&
,
&
input
{
width
:
100%
}
}
}
}
@media
(
min-width
:
$grid-float-breakpoint
)
{
input
[
type
=
"search"
]
{
@include
transition
(
width
);
margin-top
:
2px
;
width
:
200px
;
&
:not
(
.active
)
{
background-color
:
$navbar-inverse-bg
;
border-color
:
$gray-light
;
width
:
150px
;
}
}
#user_menu
{
&
.open
.dropdown-toggle
{
background-color
:
darken
(
$navbar-inverse-bg
,
7%
);
}
.dropdown-toggle
{
margin
:
0
1px
;
min-width
:
160px
;
}
.dropdown-menu
{
background-color
:
darken
(
$navbar-inverse-bg
,
7%
);
border-top
:
none
;
width
:
100%
;
&
>
li
>
a
{
color
:
$gray-light
;
padding-left
:
55px
;
&
:hover
{
background-color
:
$link-color
;
color
:
$gray-lighter
;
}
}
}
}
}
.navbar-nav
:not
(
.nav-badges
)
>
li
>
a
{
font-weight
:
bold
;
}
.nav-badges
{
li
{
height
:
$navbar-height
;
}
.dropdown-open
{
background-color
:
$dropdown-bg
;
&
>
a
{
color
:
$dropdown-link-color
;
}
.dropdown-menu
{
display
:
block
;
}
}
.dropdown-menu
{
border-top
:
none
;
margin-left
:
-1px
;
padding
:
0px
;
width
:
400px
;
.avatar
{
width
:
35px
;
height
:
35px
;
}
.header
{
padding
:
10px
;
border-bottom
:
1px
solid
$border-grey
;
h4
{
margin
:
5px
0
;
}
}
.notifications
{
position
:
relative
;
max-height
:
350px
;
}
.stream_element.media
{
padding
:
5px
;
.tooltip
{
position
:
fixed
;
}
.unread-toggle
{
margin-right
:
10px
;
opacity
:
1
;
}
&
>
.pull-right
>
.aspect_membership_dropdown
{
display
:
none
;
}
}
.ajax-loader
{
border-bottom
:
1px
solid
$border-grey
;
padding
:
10px
;
.spinner
{
height
:
30px
;
width
:
30px
;
}
}
.view_all
{
background-color
:
$link-color
;
border-top
:
3px
solid
$white
;
text-align
:
center
;
a
{
color
:
$white
;
display
:
block
;
font-weight
:
bold
;
padding
:
5px
;
&
:hover
{
text-decoration
:
none
;
}
}
}
}
}
[
class
^=
"entypo-"
],
[
class
*=
"entypo-"
]
{
color
:
inherit
;
font-size
:
$font-size-h3
;
vertical-align
:
middle
;
}
.nav-badge
{
margin-bottom
:
-2px
;
.badge
{
position
:
absolute
;
right
:
10px
;
top
:
10px
;
}
}
#user_menu
{
.avatar
{
height
:
30px
;
width
:
30px
;
}
.user-avatar
{
height
:
$navbar-height
;
padding
:
(
$navbar-height
-
30px
)
/
2
0
;
margin-bottom
:
-
$navbar-padding-vertical
;
margin-top
:
-
$navbar-padding-vertical
;
margin-right
:
10px
;
}
}
}
app/controllers/application_controller.rb
View file @
fb3d73fc
...
...
@@ -21,12 +21,4 @@ class ApplicationController < ActionController::Base
end
I18n
.
locale
=
l
end
protect_from_forgery
with: :exception
protected
def
authenticate
authenticate_or_request_with_http_basic
(
'Hi there, please sign in first :-)'
)
do
|
username
,
password
|
username
==
USER
&&
password
==
PASSWORD
end
end
end
app/controllers/blog_controller.rb
deleted
100644 → 0
View file @
dbd3dd9f
class
BlogController
<
ApplicationController
end
app/controllers/blogposts_controller.rb
0 → 100644
View file @
fb3d73fc
class
BlogpostsController
<
ApplicationController
def
index
@blogposts
=
Blogpost
.
all
end
def
show
@blogposts
=
Blogpost
.
find
(
params
[
:id
])
end
def
new
@blogposts
=
Blogpost
.
new
end
def
create
@blogposts
=
Blogpost
.
new
(
post_params
)
@blogposts
.
save
redirect_to
blogpost_path
(
@blogposts
)
end
def
edit
@blogposts
=
Blogpost
.
find
(
params
[
:id
])
end
def
update
@blogposts
=
Blogpost
.
find
(
params
[
:id
])
@blogposts
.
update
(
post_params
)
redirect_to
blogpost_path
(
@blogposts
)
flash
.
notice
=
"Article '
#{
@blogposts
.
title
}
' Updated!"
end
def
destroy
@blogposts
=
Blogpost
.
find
(
params
[
:id
])
@blogposts
.
destroy
redirect_to
@blogposts
end
def
post_params
params
.
require
(
:blogpost
).
permit
(
:title
,
:body
)
end
end
app/helpers/application_helper.rb
View file @
fb3d73fc
...
...
@@ -5,4 +5,16 @@ module ApplicationHelper
def
logged_in?
not
request
.
authorization
.
nil?
end
def
markdown
(
content
)
@markdown
||=
Redcarpet
::
Markdown
.
new
(
Redcarpet
::
Render
::
HTML
,
{
autolink:
true
,
space_after_headers:
true
,
fenced_code_blocks:
true
,
underline:
true
,
highlight:
true
,
footnotes:
true
,
tables:
true
})
@markdown
.
render
(
content
)
end
end
app/helpers/blog_helper.rb
deleted
100644 → 0
View file @
dbd3dd9f
module
BlogHelper
end
app/helpers/blogposts_helper.rb
0 → 100644
View file @
fb3d73fc
module
BlogpostsHelper
end
app/views/admin/log.html.erb
0 → 100644
View file @
fb3d73fc
<%
if
logged_in?
%>
<h1>
Admin
</h1>
<p></p>
<pre
id=
"tail"
style=
"height:400px;"
>
<%=
@logs
%>
</pre>
<button
type=
"button"
class=
"btn btn-primary"
>
Refresh
</button>
<%
content_for
(
:after
)
do
%>
<script>
var
tailcounter
=
100
;
tailScroll
();
window
.
setInterval
(
function
(){
ajaxCallFunction
();
//calling every 5 seconds
},
5000
);
function
ajaxCallFunction
(){}
$
(
"
button
"
).
click
(
function
(
e
)
{
$
.
get
(
'
<%
@logs
%>
'
,
function
(
data
)
{
$
(
'
#tail
'
).
html
(
data
)
// e.preventDefault();
// switch (tailswitch) {
// case false:
// clearInterval(t);
// tailswitch = true;
// alert("auto update off");
// break;
// case true:
// t = setInterval(tailappend, 1000);
// tailswitch = false;
// alert("auto update on");
// break;
// }
});
function
tailScroll
()
{
var
height
=
$
(
"
#tail
"
).
get
(
0
).
scrollHeight
;
$
(
"
#tail
"
).
animate
({
scrollTop
:
height
},
500
);
}
</script>
<%
end
%>
<%
else
%>
<h1>
nope
</h1>
<%
end
%>
app/views/admin/login.html.erb
0 → 100644
View file @
fb3d73fc
<h1>
Admin#index
</h1>
<p>
Find me in app/views/admin/index.html.erb
</p>
app/views/blogposts/_form.html.erb
0 → 100644
View file @
fb3d73fc
<%=
form_for
@blogposts
do
|
f
|
%>
<ul>
<%
@blogposts
.
errors
.
full_messages
.
each
do
|
error
|
%>
<li>
<%=
error
%>
</li>
<%
end
%>
</ul>
<p>
<%=
f
.
label
:title
%>
<br
/>
<%=
f
.
text_field
:title
%>
</p>
<p>
<%=
f
.
label
:body
%>
<br
/>
<%=
f
.
text_area
:body
%>
</p>
<p>
<%=
f
.
submit
%>
</p>
<%
end
%>
app/views/blogposts/edit.html.erb
0 → 100644
View file @
fb3d73fc
<h1>
Edit a Post
</h1>
<%=
render
partial:
'form'
%>
app/views/blogposts/index.html.erb
0 → 100644
View file @
fb3d73fc
<h1>
All Posts
</h1>
<ul
id=
"posts"
>
<%
@blogposts
.
each
do
|
blogpost
|
%>
<li>
<%=
link_to
blogpost
.
title
,
blogpost_path
(
blogpost
),
class:
'post_title'
%>
</li>
<%
end
%>
</ul>
<%=
link_to
"Create a New Post"
,
new_blogpost_path
,
class:
"new_post"
%>
app/views/blogposts/new.html.erb
0 → 100644
View file @
fb3d73fc
<h1>
New Post
</h1>
<%=
render
partial:
'form'
%>
app/views/blogposts/show.html.erb
0 → 100644
View file @
fb3d73fc
<div
class=
"content"
>
<h2>
<%=
@blogposts
.
title
%>
</h2>
<p>
<%=
markdown
(
@blogposts
.
body
).
html_safe
%>
</p>
<hr>
<%=
link_to
"<< Back to all Posts"
,
blogposts_path
%>
<div
style=
"padding-left:1em;"
></div>
<%=
link_to
"edit"
,
edit_blogpost_path
(
@blogposts
)
%>
<div
style=
"padding-left:1em;"
></div>
<%=
link_to
"delete"
,
blogpost_path
(
@blogposts
),
method: :delete
,
data:
{
confirm:
"Really delete the article?"
}
%>
</div>
app/views/home/hosting.html.erb
0 → 100644
View file @
fb3d73fc
<%
content_for
:title
,
t
(
'home.hosting.title'
)
%>
<div
align=
"center"
>
<h2>
<%=
t
(
'home.hosting.headline'
)
%>
</h2>
<p
style=
"color: grey;padding-top:1em;padding-bottom:1em;"
>
<%=
t
(
'home.hosting.description_html'
)
%>
</p>
<div
style=
"padding-left:4em;padding-right:4em;"
>
<div
class=
"col-md-6"
style=
"padding-right:2em;"
>
<div
class=
"list-group"
>
<button
class=
"list-group-item disabled"
>
<h5
style=
"text-align:center;"
>
This is in the package
</h5>
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
24/7 Uptime
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
Latest minetest snapshot
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
High performance database system
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
Individual servermods
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
SSD under the hood
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
Daily Backups
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
Easy to use webpanel to control your server (soon)
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
Cancel or freeze your server any time you want
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
No disgusting position reset
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
Gigabit Lan
</button>
<button
type=
"button"
class=
"list-group-item"
>
<i
class=
"glyphicon glyphicon-ok"
style=
"color:#5FB065"
></i>
Ddos protected hostmachine
</button>
</div>
</div>
<div
class=
"col-md-6"
style=
"color:gray;text-align:left"
>
<div
style=
"padding-top:1em;"
></div>
<h5>
<%=
t
(
'home.hosting.ready'
)
%>
</h5>
<%=
t
(
'home.hosting.get_html'
)
%>
<h5>
<%=
t
(
'home.hosting.pay_with'
)
%>
</h4>
<ul>
<li>
PayPal
</li>
<li>
Bitcoin
</li>
<li>
<%=
t
(
'home.hosting.banktransfer'
)
%>
</li>
</ul>
<h5>
<%=
t
(
'home.hosting.need_to_know'
)
%>
</h5>
<ul>
<li>
<%=
t
(
'home.hosting.servermods'
)
%>
</li>
<li>
<%=
t
(
'home.hosting.subgame'
)
%>
</li>
<li>
<%=
t
(
'home.hosting.players'
)
%>
</li>
<li>
<%=
t
(
'home.hosting.adminname'
)
%>
</li>
<li>
<%=
t
(
'home.hosting.public'
)
%>
</li>
</ul>
<%=
t
(
'home.hosting.dont_worry_html'
)
%>
<div
style=
"padding-top:6em;"
></div>
<a
type=
"button"
class=
"btn btn-success disabled pull-right"
>
to your webpanel
</a>
</div>
</div>
</div>
<%=
content_for
(
:license
)
do
%>
<li><a
style=
"font-weight:400;cursor:pointer;"
data-target=
"#tos"
data-toggle=
"modal"
><i
class=
"glyphicon glyphicon-tags"
></i>
TOS
</a></li>
<li>
|
</li>
<li><a
href=
"//tchncs.de/impressum.html"
target=
"_blank"
style=
"font-weight:400;"
><i
class=
"glyphicon glyphicon-tree-deciduous"
></i>
Impressum
</a></li>
<li>
|
</li>
<div
class=
"modal fade"
id=
"tos"
tabindex=
"-1"
role=
"dialog"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
>
×
</span></button>
<h4
class=
"modal-title"
id=
"f-left"
>
Terms of Use
</h4>
</div>
<div
class=
"modal-body"
>
<h4>
<%=
t
(
'home.hosting.general_head'
)
%>
</h4>
<%=
t
(
'home.hosting.general_content'
)
%>
<h4>
<%=
t
(
'home.hosting.refund_head'
)
%>
</h4>
<%=
t
(
'home.hosting.refund_content'
)
%>
<h4>
<%=
t
(
'home.hosting.overdue_head'
)
%>
</h4>
<%=
t
(
'home.hosting.overdue_content'
)
%>
<h4>
<%=
t
(
'home.hosting.ressource_head'
)
%>
</h4>
<%=
t
(
'home.hosting.ressource_content'
)
%>
<h4>
<%=
t
(
'home.hosting.mods_head'
)
%>
</h4>
<%=
t
(
'home.hosting.mods_content'
)
%>
<h4>
<%=
t
(
'home.hosting.backups_head'
)
%>
</h4>
<%=
t
(
'home.hosting.backups_content'
)
%>
<h4>
<%=
t
(
'home.hosting.abuse_head'
)
%>
</h4>
<%=
t
(
'home.hosting.abuse_content'
)
%>
<br><br>
<%=
t
(
'home.hosting.change_content'
)
%>
</div>
</div>
</div>
</div>
<%
end
%>
app/views/layouts/application.html.erb
View file @
fb3d73fc
...
...
@@ -16,6 +16,7 @@
<meta
property=
"og:image"
itemprop=
"image"
content=
"//images.illuna-minetest.tk/icons/logo.png"
/>
<link
rel=
"shortcut icon"
href=
"//images.illuna-minetest.tk/icons/favicon.ico"
type=
"image/x-icon"
/>
<link
href=
'//assets.illuna-minetest.tk/css/page.css'
rel=
"stylesheet"
type=
"text/css"
>
<%=
stylesheet_link_tag
'application'
,
media:
'all'
,
'data-turbolinks-track'
:
'reload'
%>
<%=
yield
(
:stylesheet
)
%>
</head>
<body
link=
"#c7c7c7"
vlink=
"#c7c7c7"
alink=
"#c7c7c7"
>
...
...
@@ -92,7 +93,8 @@
</div>
</div>
</footer>
<script
src=
"//assets.illuna-minetest.tk/js/jquery.min.js"
></script>
<script
src=
"//assets.illuna-minetest.tk/js/jquery.min.js"
></script>
<%=
javascript_include_tag
'application'
,
'data-turbolinks-track'
:
'reload'
%>
<script
src=
"//assets.illuna-minetest.tk/bootstrap/js/bootstrap.min.js"
></script>
<script
src=
"//assets.illuna-minetest.tk/js/firefly.js"
></script>
<script>
$
.
firefly
({
color
:
'
#c46430
'
,
minPixel
:
1
,
maxPixel
:
3
,
total
:
20
,
on
:
'
body
'
,
borderRadius
:
"
50%
"
,});
</script>
...
...
config/database.yml
View file @
fb3d73fc
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default
:
&default
adapter
:
sqlite3
pool
:
5
timeout
:
5000
mysql
:
&mysql