summaryrefslogtreecommitdiff
path: root/app/views/home
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/home')
-rw-r--r--app/views/home/_home_text.html.haml3
-rw-r--r--app/views/home/index.html.haml23
2 files changed, 17 insertions, 9 deletions
diff --git a/app/views/home/_home_text.html.haml b/app/views/home/_home_text.html.haml
new file mode 100644
index 0000000..1055091
--- /dev/null
+++ b/app/views/home/_home_text.html.haml
@@ -0,0 +1,3 @@
+Welcome to the LEAP web application.
+
+For more information, visit #{link_to('leap.se', 'https://leap.se')} \ No newline at end of file
diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml
index c02dcad..0b3bbf9 100644
--- a/app/views/home/index.html.haml
+++ b/app/views/home/index.html.haml
@@ -1,11 +1,16 @@
-Try to fetch a
-= link_to "cert", cert_path
+.row-fluid
+ .span8
+ = render 'home_text'
+ .span4
+ = render '/login_or_signup'
-%p
-Create a
-= link_to "ticket", new_ticket_path
+- if Rails.env == 'development'
+ .row-fluid
+ %hr
+ %p
+ Try to fetch a
+ = link_to "cert", cert_path
-- if logged_in?
- %p
- See all
- = link_to "tickets", tickets_path
+ %p
+ Create a
+ = link_to "ticket", new_ticket_path