mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Interface tweaks
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
|
||||
class Books(models.Model):
|
||||
"""
|
||||
pyShelfs Book Database class
|
||||
:param title: Book title
|
||||
:param author: Author
|
||||
:param categories: Categories <-- Not implemented
|
||||
:param cover: Cover image BinaryField
|
||||
:param pages: # of pages <-- Not implemented
|
||||
:param progress: Reader percentage <-- Not implented
|
||||
:param file_name: Path to book
|
||||
"""
|
||||
|
||||
class Meta:
|
||||
db_table = "books"
|
||||
|
||||
def __str__(self):
|
||||
return self.title
|
||||
|
||||
title = models.CharField(max_length=255)
|
||||
author = models.CharField(max_length=255, null=True)
|
||||
categories = models.CharField(max_length=255, null=True)
|
||||
cover = models.BinaryField(null=True, editable=True)
|
||||
pages = models.IntegerField(null=True)
|
||||
progress = models.IntegerField(null=True)
|
||||
file_name = models.CharField(max_length=255, null=False)
|
||||
|
||||
def get_absolute_url(self):
|
||||
"""Returns the url to access a particular instance of MyModelName."""
|
||||
return reverse("model-detail-view", args=[str(self.id)])
|
||||
2
src/interface/static/css/main.css
vendored
2
src/interface/static/css/main.css
vendored
@@ -56,7 +56,7 @@ body{
|
||||
}
|
||||
.app_subhdr{
|
||||
grid-area: subhdr;
|
||||
margin: 0;
|
||||
margin: 0px 5px;
|
||||
font-family: 'Gruppo', cursive;
|
||||
font-size: 18px;
|
||||
text-align: end;
|
||||
|
||||
BIN
src/interface/static/img/pyShelf_frontend_0_1_0.png
vendored
BIN
src/interface/static/img/pyShelf_frontend_0_1_0.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 3.6 MiB After Width: | Height: | Size: 5.6 MiB |
6
src/interface/templates/index.html
vendored
6
src/interface/templates/index.html
vendored
@@ -25,7 +25,9 @@
|
||||
</div>
|
||||
<div class="app_subhdr">
|
||||
<!-- Place this tag where you want the button to render. -->
|
||||
<a class="github-button" href="https://github.com/th3r00t/pyShelf/fork" data-color-scheme="no-preference: dark; light: light; dark: dark;" data-icon="octicon-repo-forked" data-size="large" aria-label="Fork th3r00t/pyShelf on GitHub">Fork</a>
|
||||
<a class="github-button" href="https://github.com/th3r00t/pyShelf/fork" data-color-scheme="no-preference: dark; light: light; dark: dark;" data-icon="octicon-repo-forked" data-size="large" aria-label="Fork th3r00t/pyShelf on GitHub">Fork</a>
|
||||
<!-- Place this tag where you want the button to render. -->
|
||||
<a class="github-button" href="https://github.com/th3r00t/pyShelf/issues" data-color-scheme="no-preference: dark; light: light; dark: dark;" data-icon="octicon-issue-opened" data-size="large" aria-label="Issue th3r00t/pyShelf on GitHub">Issue</a>
|
||||
<!--
|
||||
<img src="/static/img/open-source-175x29.png" class="hdr_badge" /><br />
|
||||
<img src="/static/img/gpl-125x28.png" class="hdr_badge" />
|
||||
@@ -36,7 +38,7 @@
|
||||
<input class="nav_button prev_page" type="button" value="<< Prev Page" onclick="window.location.href = '/prev_page/{{ Set }}'">
|
||||
</div>
|
||||
<div class="nav_center_top">
|
||||
<input class="nav_search" type="text" size="25"><input class="nav_button" type="submit" value="Search">
|
||||
<input class="nav_search" type="text" size="25" value="-- Not Yet Implemented --"><input class="nav_button" type="submit" value="Search">
|
||||
</div>
|
||||
<div class="nav_right_top">
|
||||
<input class="nav_button next_page" type="button" value="Next Page >>" onclick="window.location.href = '/next_page/{{ Set }}'">
|
||||
|
||||
Reference in New Issue
Block a user