From c86f4161abc11d048d75d12442850849c55709b2 Mon Sep 17 00:00:00 2001
From: Simon Rettberg
Date: Wed, 7 Sep 2016 17:23:30 +0200
Subject: [news] Switch to new ellipsis hack; fix saving when summernote is in
source code view
---
modules-available/news/page.inc.php | 2 ++
modules-available/news/templates/page-news.html | 30 ++++++++++++++++---------
2 files changed, 22 insertions(+), 10 deletions(-)
(limited to 'modules-available/news')
diff --git a/modules-available/news/page.inc.php b/modules-available/news/page.inc.php
index 50e07458..ee377dc4 100644
--- a/modules-available/news/page.inc.php
+++ b/modules-available/news/page.inc.php
@@ -109,6 +109,7 @@ class Page_News extends Page
if ($row['newsid'] == $this->newsId) {
$row['active'] = 'active';
}
+ $row['content'] = strip_tags(str_replace('>', '> ', $row['content']));
$lines[] = $row;
}
// fetch the list of the older helps
@@ -120,6 +121,7 @@ class Page_News extends Page
if ($row['newsid'] == $this->newsId) {
$row['active'] = 'active';
}
+ $row['content'] = strip_tags(str_replace('>', '> ', $row['content']));
$linesHelp[] = $row;
}
diff --git a/modules-available/news/templates/page-news.html b/modules-available/news/templates/page-news.html
index 7750137e..192635ea 100644
--- a/modules-available/news/templates/page-news.html
+++ b/modules-available/news/templates/page-news.html
@@ -18,7 +18,7 @@
{{lang_latestUpdate}}: {{latestDate}}
-
+
@@ -41,10 +41,10 @@
{{#list}}
- {{date}} |
- {{title}} |
- {{content}} |
-
+ | {{date}} |
+ |
+ |
+
{{lang_show}}
|
@@ -62,9 +62,9 @@
@@ -85,9 +85,9 @@
{{#listHelp}}
- {{date}} |
- {{content}} |
-
+ | {{date}} |
+ |
+
{{lang_show}}
|
@@ -102,3 +102,13 @@
+
\ No newline at end of file
--
cgit v1.2.3-55-g7522