From 5bb60ec8d52787b494fa938adb3d17837135b8b2 Mon Sep 17 00:00:00 2001
From: Andreas Stephanides
Date: Sun, 3 Mar 2013 23:00:50 +0100
Subject: [PATCH] Wiki usw
---
app/views/modulgruppen/_modulgruppe.html.erb | 2 +-
app/views/modulgruppen/show.html.erb | 3 ++-
app/views/moduls/_kurz.html.erb | 2 +-
app/views/moduls/_modul.html.erb | 2 +-
app/views/moduls/show.html.erb | 2 ++
app/views/rubriken/show.html.erb | 1 +
6 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/app/views/modulgruppen/_modulgruppe.html.erb b/app/views/modulgruppen/_modulgruppe.html.erb
index 7bb6b54..fba19eb 100644
--- a/app/views/modulgruppen/_modulgruppe.html.erb
+++ b/app/views/modulgruppen/_modulgruppe.html.erb
@@ -6,7 +6,7 @@
<%= render :partial=>'moduls/kurz', :collection=>modulgruppe.moduls, :as=>:modul%>
- <%= link_to ''.html_safe+I18n.t("common.edit"), edit_modulgruppe_path(modulgruppe) %>
+ <% link_to ''.html_safe+I18n.t("common.edit"), edit_modulgruppe_path(modulgruppe) %>
diff --git a/app/views/modulgruppen/show.html.erb b/app/views/modulgruppen/show.html.erb
index febc90c..b8a33b3 100644
--- a/app/views/modulgruppen/show.html.erb
+++ b/app/views/modulgruppen/show.html.erb
@@ -29,4 +29,5 @@
<%= link_to ''.html_safe+I18n.t("modulgruppe.addmodul"), new_modul_path(:modulgruppen_id =>@modulgruppe.id),:class =>"btn" %>
<%= link_to I18n.t("modulgruppe.studium"), studium_path(@modulgruppe.studium),:class =>"btn" %>
<%= link_to I18n.t("common.edit"), edit_modulgruppe_path(@modulgruppe),:class =>"btn" %>
-
\ No newline at end of file
+<%= link_to I18n.t("common.delete"),[@modulgruppe], :method=>:delete , :data=>{:confirm=>I18n.t("common.sure")} ,:class=>"btn" %>
+
diff --git a/app/views/moduls/_kurz.html.erb b/app/views/moduls/_kurz.html.erb
index fb4ec32..7792e5b 100644
--- a/app/views/moduls/_kurz.html.erb
+++ b/app/views/moduls/_kurz.html.erb
@@ -5,6 +5,6 @@
<%= raw(modul.desc) %>
-<%= link_to ''.html_safe+I18n.t("common.edit"), edit_modul_path(modul) %>
+<% link_to ''.html_safe+I18n.t("common.edit"), edit_modul_path(modul) %>
diff --git a/app/views/moduls/_modul.html.erb b/app/views/moduls/_modul.html.erb
index 1626c01..81254ca 100644
--- a/app/views/moduls/_modul.html.erb
+++ b/app/views/moduls/_modul.html.erb
@@ -11,5 +11,5 @@ LVAs:
<% end %>
-<%= link_to ''.html_safe+I18n.t("common.edit"), edit_modul_path(modul) %>
+<% link_to ''.html_safe+I18n.t("common.edit"), edit_modul_path(modul) %>
diff --git a/app/views/moduls/show.html.erb b/app/views/moduls/show.html.erb
index c715ed7..5190cfc 100644
--- a/app/views/moduls/show.html.erb
+++ b/app/views/moduls/show.html.erb
@@ -12,3 +12,5 @@
<%= link_to 'Add LVA', new_lva_path(:modul_id =>@modul.id) %>
+<%= link_to ''.html_safe+ I18n.t("common.edit") , edit_modul_path(@modul) %>
+<%= link_to "Loeschen", [@modul],:method=>:delete ,:data => {:confirm =>"Are you sure" } %>
diff --git a/app/views/rubriken/show.html.erb b/app/views/rubriken/show.html.erb
index 66fa591..8980811 100644
--- a/app/views/rubriken/show.html.erb
+++ b/app/views/rubriken/show.html.erb
@@ -26,6 +26,7 @@
<% row.each do |neuigkeit| %>
<%= render neuigkeit %>
+<%= link_to "more" , neuigkeit_path(neuigkeit) %>
<% end %>