summaryrefslogtreecommitdiff
path: root/app/views/home/_content.html.haml
diff options
context:
space:
mode:
authorluca-marie <ml.kochsiek@fu-berlin.de>2016-09-22 15:31:52 +0200
committerluca-marie <ml.kochsiek@fu-berlin.de>2016-09-22 15:31:52 +0200
commit6f9c4fdab2caef90e49ca965617e767b50bcbbb2 (patch)
tree327c1383a694d3fca985813ec54e218240e85637 /app/views/home/_content.html.haml
parent306b36c045cd62638db179115ed002c6ab7c5cd8 (diff)
initializer/twitter.rb file unnecessary; added change in main view only if twitter feature is set enabled == true
Diffstat (limited to 'app/views/home/_content.html.haml')
-rw-r--r--app/views/home/_content.html.haml22
1 files changed, 15 insertions, 7 deletions
diff --git a/app/views/home/_content.html.haml b/app/views/home/_content.html.haml
index 5341189..950f85e 100644
--- a/app/views/home/_content.html.haml
+++ b/app/views/home/_content.html.haml
@@ -1,4 +1,18 @@
-.col-md-8
+- if twitter_enabled == true
+ .col-md-8
+ .row
+ %h1= t(:welcome, :provider => APP_CONFIG[:domain])
+ .p=t(:welcome_message_html)
+
+ .row
+ = home_page_buttons
+
+ .col-md-1
+
+ .col-md-3
+ .row
+ = render 'twitter/index'
+- else
.row
%h1= t(:welcome, :provider => APP_CONFIG[:domain])
.p=t(:welcome_message_html)
@@ -6,12 +20,6 @@
.row
= home_page_buttons
-.col-md-1
-
-.col-md-3
- .row
- = render 'twitter/index'
-
- if Rails.env == 'development'
.row
%hr