From 3b623c3f8bdc66b2683c5b020513d79c01a9a52f Mon Sep 17 00:00:00 2001 From: ajurna Date: Thu, 14 May 2020 13:00:54 +0100 Subject: [PATCH] glyphicons replaced with font awesome --- comic/templates/base.html | 11 +++- comic/templates/comic/comic_list.html | 2 +- comic/util.py | 6 +- comic/views.py | 4 +- static/css/base.css | 84 ++++++++++++++------------- 5 files changed, 59 insertions(+), 48 deletions(-) diff --git a/comic/templates/base.html b/comic/templates/base.html index a6696b3..6e5fb3d 100644 --- a/comic/templates/base.html +++ b/comic/templates/base.html @@ -15,9 +15,10 @@ {% bootstrap_css %} - + + @@ -60,8 +61,14 @@ ================================================== --> {% bootstrap_javascript jquery='full' %} - + + {% block script %} {% endblock %} + + + + + diff --git a/comic/templates/comic/comic_list.html b/comic/templates/comic/comic_list.html index 851b8e3..d49a7d1 100644 --- a/comic/templates/comic/comic_list.html +++ b/comic/templates/comic/comic_list.html @@ -16,7 +16,7 @@ -
+ File/Folder Status diff --git a/comic/util.py b/comic/util.py index a5ee6e8..ae092d4 100644 --- a/comic/util.py +++ b/comic/util.py @@ -91,7 +91,7 @@ class DirFile: def populate_directory(self, directory, user): self.name = directory.name - self.icon = "glyphicon-folder-open" + self.icon = "fa-folder-open" self.selector = urlsafe_base64_encode(directory.selector.bytes) self.location = "/comic/{0}/".format(self.selector) self.label = generate_dir_status(user, directory) @@ -99,14 +99,14 @@ class DirFile: def populate_comic(self, comic, user): if type(comic) == str: - self.icon = "glyphicon-remove" + self.icon = "fa-exclamation-circle" self.name = comic self.selector = "0" self.location = "/" self.label = '
Error
' self.type = "book" else: - self.icon = "glyphicon-book" + self.icon = "fa-book" self.name = comic.file_name status, created = ComicStatus.objects.get_or_create(comic=comic, user=user) if created: diff --git a/comic/views.py b/comic/views.py index c4211b0..d642d1f 100644 --- a/comic/views.py +++ b/comic/views.py @@ -64,7 +64,7 @@ def comic_list(request, directory_selector=False): @login_required @require_POST def comic_list_json(request, directory_selector=False): - icon_str = '' + icon_str = '' if directory_selector: directory_selector = uuid.UUID(bytes=urlsafe_base64_decode(directory_selector)) directory = Directory.objects.get(selector=directory_selector) @@ -109,7 +109,7 @@ def recent_comics(request): def recent_comics_json(request): start = int(request.POST["start"]) end = start + int(request.POST["length"]) - icon = '' + icon = '' comics = ComicBook.objects.all() response_data = dict() response_data["recordsTotal"] = comics.count() diff --git a/static/css/base.css b/static/css/base.css index c1bb163..c5191b0 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -1,42 +1,46 @@ -.navbar { - margin: 0px; -} -.starter-template { - padding: 40px 15px; - text-align: center; -} -/* Sticky footer styles --------------------------------------------------- */ -html { - position: relative; - min-height: 100%; -} -body { - /* Margin bottom by footer height */ - margin-bottom: 80px; -} -.footer { - position: absolute; - bottom: 0; - width: 100%; - /* Set the fixed height of the footer here */ - height: 80px; - background-color: #f5f5f5; -} -.comic_box { - width: auto; -} +/*.navbar {*/ +/* margin: 0px;*/ +/*}*/ +/*.starter-template {*/ +/* padding: 40px 15px;*/ +/* text-align: center;*/ +/*}*/ +/*!* Sticky footer styles*/ +/*-------------------------------------------------- *!*/ +/*html {*/ +/* position: relative;*/ +/* min-height: 100%;*/ +/*}*/ +/*body {*/ +/* !* Margin bottom by footer height *!*/ +/* margin-bottom: 80px;*/ +/*}*/ +/*.footer {*/ +/* position: absolute;*/ +/* bottom: 0;*/ +/* width: 100%;*/ +/* !* Set the fixed height of the footer here *!*/ +/* height: 80px;*/ +/* background-color: #f5f5f5;*/ +/*}*/ +/*.comic_box {*/ +/* width: auto;*/ +/*}*/ -#dropdown-list{ - max-height: 300px; - overflow: auto; - box-shadow: none; - } +/*#dropdown-list{*/ +/* max-height: 300px;*/ +/* overflow: auto;*/ +/* box-shadow: none;*/ +/* }*/ - td a { - display:block; - width:100%; - } - tr.clickable-row { - cursor: pointer; - } +/* td a {*/ +/* display:block;*/ +/* width:100%;*/ +/* }*/ +/* tr.clickable-row {*/ +/* cursor: pointer;*/ +/* }*/ + +#comic_list caption { + caption-side: top; +} \ No newline at end of file