From 8092f4a0310e57bf214e9bb17db3ed3e78512ee3 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 8 Jun 2016 16:26:59 +0530 Subject: [PATCH] [minor] style fixes for image view --- frappe/data/Framework.sql | 1 + frappe/public/js/frappe/list/image_view_item_row.html | 6 +++--- frappe/public/js/frappe/list/list_item_subject.html | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frappe/data/Framework.sql b/frappe/data/Framework.sql index f2339a18a0..fa1ef74c46 100644 --- a/frappe/data/Framework.sql +++ b/frappe/data/Framework.sql @@ -148,6 +148,7 @@ CREATE TABLE `tabDocType` ( `_user_tags` varchar(255) DEFAULT NULL, `custom` int(1) NOT NULL DEFAULT 0, `beta` int(1) NOT NULL DEFAULT 0, + `image_view` int(1) NOT NULL DEFAULT 0, PRIMARY KEY (`name`), KEY `parent` (`parent`) ) ENGINE=InnoDB ROW_FORMAT=COMPRESSED CHARACTER SET=utf8mb4 COLLATE=utf8mb4_unicode_ci; diff --git a/frappe/public/js/frappe/list/image_view_item_row.html b/frappe/public/js/frappe/list/image_view_item_row.html index bd022999b8..4a01797604 100644 --- a/frappe/public/js/frappe/list/image_view_item_row.html +++ b/frappe/public/js/frappe/list/image_view_item_row.html @@ -1,4 +1,4 @@ -
+
{%= subject %} @@ -7,8 +7,8 @@
-
+
{% if (!item_image) { %}{%= frappe.get_abbr(data.name) %}{% } %} {% for (var i=0, l=columns.length; i < l; i++ ) { diff --git a/frappe/public/js/frappe/list/list_item_subject.html b/frappe/public/js/frappe/list/list_item_subject.html index 1e4475fe47..23db0c1b20 100644 --- a/frappe/public/js/frappe/list/list_item_subject.html +++ b/frappe/public/js/frappe/list/list_item_subject.html @@ -14,7 +14,7 @@ {{ strip_html(_title) }} {% if (_workflow && !_without_workflow) { %}