From 0fe92a4b48c4bd8487c22bf60eaa267b02c2ee68 Mon Sep 17 00:00:00 2001 From: Thomas Blazek Date: Wed, 2 Oct 2013 10:03:28 +0200 Subject: [PATCH] css contentbox --- app/assets/stylesheets/application.css.scss | 6 +----- app/views/studien/verwalten.html.erb | 14 +++++++------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 41183b3..404ffd0 100755 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -104,7 +104,7 @@ box-shadow:none; { padding:0; } -a.linkbox +a.linkbox, div.contentbox { display:block; padding:5px; @@ -131,9 +131,5 @@ ul.linkbox-list div.contentbox { -display:block; -padding:5px; -border-radius: 10px; -border: lightgray solid 1px; margin: 5px; } \ No newline at end of file diff --git a/app/views/studien/verwalten.html.erb b/app/views/studien/verwalten.html.erb index dd56b33..ba845fe 100644 --- a/app/views/studien/verwalten.html.erb +++ b/app/views/studien/verwalten.html.erb @@ -6,7 +6,7 @@

<%= I18n.t("studien.verwaltung.title") %>

<%= I18n.t("studien.verwaltung.explanation").html_safe %>

<%= I18n.t "studien.studien"%>

-
+
<% @studien.each_slice([(Studium.count/2.0).ceil, 1].max) do |col| %> @@ -36,7 +36,7 @@

Vortragende

-
+
<% @lecturers.each_slice([(Lecturer.count/3.0).ceil, 1].max) do |col| %>
@@ -68,7 +68,7 @@

Modulgruppen

-
+
<% @modulgruppen.each do |mg| %> <%= (mg.valid?) ? ' '.html_safe : ''.html_safe %> <%= link_to mg.name, mg %> | <%=link_to ''.html_safe+ 'edit', edit_modulgruppe_path(mg)%>
<% end %> @@ -95,7 +95,7 @@

Module

-
+
<% @module.each do |m| %> @@ -123,7 +123,7 @@

Lvas

-
+
<% @lvas.each do |lva| %> @@ -164,7 +164,7 @@
  • Black: Warning, should be solved
  • Green: Everything is fine
  • -
    +
      <% @messages.flatten.compact.each do |m| %> <% if !m.strip.empty? %> @@ -175,7 +175,7 @@ <%= I18n.t("verwalten.fehler.keine").html_safe if @messages.empty?%>

    Beispiele

    -
    +
    <% @beispiele.each do |b| %>