diff --git a/.~lock.article_final.odt# b/.~lock.article_final.odt# new file mode 100644 index 0000000..9cda9ba --- /dev/null +++ b/.~lock.article_final.odt# @@ -0,0 +1 @@ +,anon,anon-pc,25.07.2022 00:28,file:///home/anon/.config/libreoffice/4; \ No newline at end of file diff --git a/article.odt b/article.odt index 6bf51d8..d76cdab 100644 Binary files a/article.odt and b/article.odt differ diff --git a/article_final.odt b/article_final.odt new file mode 100644 index 0000000..968922f Binary files /dev/null and b/article_final.odt differ diff --git a/articles/templates/articles/article.html b/articles/templates/articles/article.html index 6d3ad64..2f5ef8a 100644 --- a/articles/templates/articles/article.html +++ b/articles/templates/articles/article.html @@ -33,9 +33,7 @@
-
-
-
+
{% if article.status == 'Pending approval' %}
Pending approval
@@ -81,8 +79,6 @@
-
-
diff --git a/articles/templates/articles/articles.html b/articles/templates/articles/articles.html index e1ea171..4a5ee83 100644 --- a/articles/templates/articles/articles.html +++ b/articles/templates/articles/articles.html @@ -118,7 +118,7 @@
@@ -159,7 +159,7 @@
{{ article.title }}
-

{{ article.text | safe }}

+

{{ article.subtitle | safe }}

Article by {{ article.owner.username }}, {{ article.date_published }}
@@ -199,7 +199,7 @@
@@ -213,7 +213,7 @@
{{ article.title }}
-

{{ article.text | safe }}

+

{{ article.subtitle | safe }}

Article by {{ article.owner.username }}, {{ article.date_published }}
diff --git a/articles/views.py b/articles/views.py index c46a965..0ff12a4 100644 --- a/articles/views.py +++ b/articles/views.py @@ -34,9 +34,9 @@ def articles(request): article.title = article.title[:100] + '...' article.count = count if count != 5 and count != 0: - article.text = article.text[:400] + '...' + article.text = article.text[:200] + '...' else: - article.text = article.text[:600] + '...' + article.text = article.text[:400] + '...' count += 1 if request.method != 'POST': @@ -53,8 +53,6 @@ def articles(request): else: message = 'Something went wrong!' - print(thumbnail) - context = {'page': 'article', 'articles': articles, 'form': form, 'message': message, 'thumbnail': thumbnail} return render(request, 'articles/articles.html', context) @@ -132,7 +130,8 @@ def write(request): article.date_published = datetime.datetime.strftime(article.date_published, '%d/%m/%Y') except: pass - article.title = article.title[:50] + '...' + if len(article.title) > 60: + article.title = article.title[:60] + '...' if request.user.profile.type == 'editor': reviews = Article.objects.filter(status="Pending approval").exclude(author=request.user) @@ -146,7 +145,8 @@ def write(request): review.date_published = datetime.datetime.strftime(review.date_published, '%d/%m/%Y') except: pass - review.title = review.title[:50] + '...' + if len(review.title) > 60: + review.title = review.title[:60] + '...' context = {'page': 'article', 'articles': articles, 'reviews': reviews} @@ -162,7 +162,8 @@ def write(request): review.date_published = datetime.datetime.strftime(review.date_published, '%d/%m/%Y') except: pass - review.title = review.title[:50] + '...' + if len(review.title) > 60: + review.title = review.title[:60] + '...' published = Article.objects.filter(status="Published") for publish in published: @@ -175,7 +176,8 @@ def write(request): publish.date_published = datetime.datetime.strftime(publish.date_published, '%d/%m/%Y') except: pass - publish.title = publish.title[:50] + '...' + if len(publish.title) > 60: + publish.title = publish.title[:60] + '...' context = {'page': 'article', 'articles': articles, 'reviews': reviews, 'published': published} diff --git a/charts/templates/charts/base.html b/charts/templates/charts/base.html index 0855797..2f84090 100644 --- a/charts/templates/charts/base.html +++ b/charts/templates/charts/base.html @@ -238,7 +238,7 @@
@@ -258,6 +258,11 @@ Blockchain Size (Bytes) Transaction Size (Bytes) Mining Difficulty + Security Budget + Breakeven Efficiency +
@@ -351,14 +356,14 @@
diff --git a/charts/templates/charts/index.html b/charts/templates/charts/index.html index e3b076f..3488698 100644 --- a/charts/templates/charts/index.html +++ b/charts/templates/charts/index.html @@ -102,12 +102,12 @@

- Raised 2.30 of 46 XMR + Raised 5.41 of 46 XMR

-
+
@@ -140,12 +140,12 @@

- Raised 2.30 of 46 XMR + Raised 5.41 of 46 XMR

-
+
diff --git a/charts/templates/charts/pageviews.html b/charts/templates/charts/pageviews.html index 224e97d..d0c777c 100644 --- a/charts/templates/charts/pageviews.html +++ b/charts/templates/charts/pageviews.html @@ -117,8 +117,8 @@ x: {{ dates|safe }}, y: {{ unique|safe }}, line: { - color: '#777777' - ,width: 1 + color: '#1dddcd' + ,width: 2 } }; @@ -129,8 +129,8 @@ x: {{ dates|safe }}, y: {{ unique|safe }}, line: { - color: '#777777' - ,width: 1 + color: '#1dddcd' + ,width: 2 } }; @@ -144,9 +144,9 @@ var layout = { { xref: 'paper', yref: 'paper', - x: 0.02, + x: 0.98, xanchor: 'auto', - y: 0.50, + y: 0.98, yanchor: 'auto', text: 'Moneroj
https://www.moneroj.net', showarrow: false, @@ -162,8 +162,8 @@ var layout = { }], separators: ",.", legend: { - x: 0.02, - y: 0.02, + x: 0.98, + y: 0.50, bgcolor: '#333333', bordercolor: '#5f5f5f', borderwidth: 1, @@ -208,8 +208,8 @@ var layout = { ,zeroline: true }, margin: { - l: 120, - r: 120, + l: 80, + r: 30, b: 35, t: 10, pad: 10 @@ -224,7 +224,7 @@ var layout_mobile = { namelength: -1 }, legend: { - x: 0.02, + x: 0.98, y: 0.98, bgcolor: '#000000', bordercolor: '#5f5f5f', diff --git a/static/img/articles/1/1.png b/static/img/articles/1/1.png new file mode 100644 index 0000000..1c9fa5c Binary files /dev/null and b/static/img/articles/1/1.png differ diff --git a/static/img/articles/1/10.png b/static/img/articles/1/10.png new file mode 100644 index 0000000..96f0915 Binary files /dev/null and b/static/img/articles/1/10.png differ diff --git a/static/img/articles/1/11.png b/static/img/articles/1/11.png new file mode 100644 index 0000000..08a7249 Binary files /dev/null and b/static/img/articles/1/11.png differ diff --git a/static/img/articles/1/12.png b/static/img/articles/1/12.png new file mode 100644 index 0000000..81d6619 Binary files /dev/null and b/static/img/articles/1/12.png differ diff --git a/static/img/articles/1/13.png b/static/img/articles/1/13.png new file mode 100644 index 0000000..4b29fe3 Binary files /dev/null and b/static/img/articles/1/13.png differ diff --git a/static/img/articles/1/14.png b/static/img/articles/1/14.png new file mode 100644 index 0000000..c578cae Binary files /dev/null and b/static/img/articles/1/14.png differ diff --git a/static/img/articles/1/15.png b/static/img/articles/1/15.png new file mode 100644 index 0000000..3936175 Binary files /dev/null and b/static/img/articles/1/15.png differ diff --git a/static/img/articles/1/16.png b/static/img/articles/1/16.png new file mode 100644 index 0000000..3d2d697 Binary files /dev/null and b/static/img/articles/1/16.png differ diff --git a/static/img/articles/1/17.png b/static/img/articles/1/17.png new file mode 100644 index 0000000..190088a Binary files /dev/null and b/static/img/articles/1/17.png differ diff --git a/static/img/articles/1/18.png b/static/img/articles/1/18.png new file mode 100644 index 0000000..616db34 Binary files /dev/null and b/static/img/articles/1/18.png differ diff --git a/static/img/articles/1/19.png b/static/img/articles/1/19.png new file mode 100644 index 0000000..c0f36c2 Binary files /dev/null and b/static/img/articles/1/19.png differ diff --git a/static/img/articles/1/2.png b/static/img/articles/1/2.png new file mode 100644 index 0000000..84b6b79 Binary files /dev/null and b/static/img/articles/1/2.png differ diff --git a/static/img/articles/1/20.png b/static/img/articles/1/20.png new file mode 100644 index 0000000..59f2a4c Binary files /dev/null and b/static/img/articles/1/20.png differ diff --git a/static/img/articles/1/21.png b/static/img/articles/1/21.png new file mode 100644 index 0000000..79302a4 Binary files /dev/null and b/static/img/articles/1/21.png differ diff --git a/static/img/articles/1/22.png b/static/img/articles/1/22.png new file mode 100644 index 0000000..b3e5fea Binary files /dev/null and b/static/img/articles/1/22.png differ diff --git a/static/img/articles/1/23.png b/static/img/articles/1/23.png new file mode 100644 index 0000000..e52522e Binary files /dev/null and b/static/img/articles/1/23.png differ diff --git a/static/img/articles/1/24.png b/static/img/articles/1/24.png new file mode 100644 index 0000000..d1dad26 Binary files /dev/null and b/static/img/articles/1/24.png differ diff --git a/static/img/articles/1/25.png b/static/img/articles/1/25.png new file mode 100644 index 0000000..39a5c74 Binary files /dev/null and b/static/img/articles/1/25.png differ diff --git a/static/img/articles/1/26.png b/static/img/articles/1/26.png new file mode 100644 index 0000000..a2afb3c Binary files /dev/null and b/static/img/articles/1/26.png differ diff --git a/static/img/articles/1/27.png b/static/img/articles/1/27.png new file mode 100644 index 0000000..3b15993 Binary files /dev/null and b/static/img/articles/1/27.png differ diff --git a/static/img/articles/1/28.png b/static/img/articles/1/28.png new file mode 100644 index 0000000..fad43d9 Binary files /dev/null and b/static/img/articles/1/28.png differ diff --git a/static/img/articles/1/29.png b/static/img/articles/1/29.png new file mode 100644 index 0000000..9e3909f Binary files /dev/null and b/static/img/articles/1/29.png differ diff --git a/static/img/articles/1/3.png b/static/img/articles/1/3.png new file mode 100644 index 0000000..8dfefaf Binary files /dev/null and b/static/img/articles/1/3.png differ diff --git a/static/img/articles/1/30.png b/static/img/articles/1/30.png new file mode 100644 index 0000000..a3bc668 Binary files /dev/null and b/static/img/articles/1/30.png differ diff --git a/static/img/articles/1/31.png b/static/img/articles/1/31.png new file mode 100644 index 0000000..0eb236d Binary files /dev/null and b/static/img/articles/1/31.png differ diff --git a/static/img/articles/1/32.png b/static/img/articles/1/32.png new file mode 100644 index 0000000..5e39e99 Binary files /dev/null and b/static/img/articles/1/32.png differ diff --git a/static/img/articles/1/33.png b/static/img/articles/1/33.png new file mode 100644 index 0000000..77d0051 Binary files /dev/null and b/static/img/articles/1/33.png differ diff --git a/static/img/articles/1/34.png b/static/img/articles/1/34.png new file mode 100644 index 0000000..b70a915 Binary files /dev/null and b/static/img/articles/1/34.png differ diff --git a/static/img/articles/1/35.png b/static/img/articles/1/35.png new file mode 100644 index 0000000..c7027bd Binary files /dev/null and b/static/img/articles/1/35.png differ diff --git a/static/img/articles/1/4.png b/static/img/articles/1/4.png new file mode 100644 index 0000000..69397ee Binary files /dev/null and b/static/img/articles/1/4.png differ diff --git a/static/img/articles/1/5.png b/static/img/articles/1/5.png new file mode 100644 index 0000000..f0ec1c2 Binary files /dev/null and b/static/img/articles/1/5.png differ diff --git a/static/img/articles/1/6.png b/static/img/articles/1/6.png new file mode 100644 index 0000000..520a80a Binary files /dev/null and b/static/img/articles/1/6.png differ diff --git a/static/img/articles/1/7.png b/static/img/articles/1/7.png new file mode 100644 index 0000000..e39fb74 Binary files /dev/null and b/static/img/articles/1/7.png differ diff --git a/static/img/articles/1/8.png b/static/img/articles/1/8.png new file mode 100644 index 0000000..7b52905 Binary files /dev/null and b/static/img/articles/1/8.png differ diff --git a/static/img/articles/1/9.png b/static/img/articles/1/9.png new file mode 100644 index 0000000..e1de922 Binary files /dev/null and b/static/img/articles/1/9.png differ diff --git a/time_test.txt b/time_test.txt deleted file mode 100644 index e69de29..0000000