fügt eine navbar und eine Indexseite hinzu

This commit is contained in:
Florian Bogenhard
2014-08-08 22:56:13 +02:00
parent dae819f069
commit 9d574f5511
8 changed files with 67 additions and 14 deletions
+2
View File
@@ -0,0 +1,2 @@
class DocumentsController < ApplicationController
end
+2
View File
@@ -0,0 +1,2 @@
class Document < ActiveRecord::Base
end
+1
View File
@@ -0,0 +1 @@
| Hallo
-14
View File
@@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Klaus</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>
</html>
+22
View File
@@ -0,0 +1,22 @@
doctype html
html
head
title
| Klausurverwaltung
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
= javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags
body
nav.navbar.navbar-default role="navigation"
div.container-fluid
div.navbar-header
button.navbar-toggle type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
spansr-only Toggle navigation
spanicon-bar
spanicon-bar
spanicon-bar
= link_to 'Klaus', root_path, class: 'navbar-brand'
div.collapse.navbar-collapse#bs-example-navbar-collapse-1
div.row
div.col-md-12
= yield