From 1a9388acbb57affe6a6233fa6dcdd1f4f6572b50 Mon Sep 17 00:00:00 2001
From: Raghavendra Kamath
Date: Fri, 23 Feb 2018 14:34:44 +0530
Subject: [PATCH] Clean inline css found in chapter and grant for loops!
(#13038)
* Clean inline css found in chapter and grant for loops!
* Remove redundant css
* remove unwanted ide files and append gitignore
* remove unnecessary line from build.json
* restore import for variable.less
* remove kdev from gitignore
---
.../doctype/chapter/templates/chapter.html | 3 --
.../chapter/templates/chapter_row.html | 46 +------------------
.../templates/grant_application.html | 8 +++-
.../templates/grant_application_row.html | 40 ----------------
4 files changed, 8 insertions(+), 89 deletions(-)
diff --git a/erpnext/non_profit/doctype/chapter/templates/chapter.html b/erpnext/non_profit/doctype/chapter/templates/chapter.html
index 671a13a951..04a715886b 100644
--- a/erpnext/non_profit/doctype/chapter/templates/chapter.html
+++ b/erpnext/non_profit/doctype/chapter/templates/chapter.html
@@ -65,7 +65,4 @@
Join this Chapter
Leave this Chapter
-
{% endblock %}
-
-
\ No newline at end of file
diff --git a/erpnext/non_profit/doctype/chapter/templates/chapter_row.html b/erpnext/non_profit/doctype/chapter/templates/chapter_row.html
index 12176ca177..afa6183be8 100644
--- a/erpnext/non_profit/doctype/chapter/templates/chapter_row.html
+++ b/erpnext/non_profit/doctype/chapter/templates/chapter_row.html
@@ -19,51 +19,7 @@
- {{ html2text(doc.introduction[:200]) }}{% if introduction|len > 200 %}...{% endif %}
+ {{ html2text(doc.introduction) | truncate (200) }}
{% endif %}
-
-
-
\ No newline at end of file
diff --git a/erpnext/non_profit/doctype/grant_application/templates/grant_application.html b/erpnext/non_profit/doctype/grant_application/templates/grant_application.html
index 8fecdadf12..52e8469284 100644
--- a/erpnext/non_profit/doctype/grant_application/templates/grant_application.html
+++ b/erpnext/non_profit/doctype/grant_application/templates/grant_application.html
@@ -59,4 +59,10 @@
{% else %}
Post a New Grant
{% endif %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
+{% block style %}
+
+
+{% endblock %}
diff --git a/erpnext/non_profit/doctype/grant_application/templates/grant_application_row.html b/erpnext/non_profit/doctype/grant_application/templates/grant_application_row.html
index c374959e94..e375b16154 100644
--- a/erpnext/non_profit/doctype/grant_application/templates/grant_application_row.html
+++ b/erpnext/non_profit/doctype/grant_application/templates/grant_application_row.html
@@ -9,43 +9,3 @@
{% endif %}
-
-
\ No newline at end of file