first article

This commit is contained in:
anon 2022-07-25 00:40:41 -03:00
parent 9e8cce3ad7
commit aba932b0a3
45 changed files with 39 additions and 35 deletions

View file

@ -0,0 +1 @@
,anon,anon-pc,25.07.2022 00:28,file:///home/anon/.config/libreoffice/4;

Binary file not shown.

BIN
article_final.odt Normal file

Binary file not shown.

View file

@ -33,9 +33,7 @@
<section id="news" class="news"> <section id="news" class="news">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-xl-1 col-lg-6 icon-boxes"> <div class="col-xl-12 col-lg-6 icon-boxes">
</div>
<div class="col-xl-10 col-lg-6 icon-boxes">
{% if article.status == 'Pending approval' %} {% if article.status == 'Pending approval' %}
<div class="alert alert-warning"> <div class="alert alert-warning">
<strong><center>Pending approval</center></strong> <strong><center>Pending approval</center></strong>
@ -81,8 +79,6 @@
</div> </div>
</div> </div>
<div class="col-xl-1 col-lg-6 icon-boxes">
</div>
</div> </div>
</div> </div>

View file

@ -118,7 +118,7 @@
<div class="content"> <div class="content">
<h3 class="link-white"><a href="../view_article/{{ article.url }}">{{ article.title }}</a></h3> <h3 class="link-white"><a href="../view_article/{{ article.url }}">{{ article.title }}</a></h3>
<p class="link-white" style="text-align: justify;"> <p class="link-white" style="text-align: justify;">
<b><a href="../view_article/{{ article.url }}">Article by {{ article.owner.username }}, {{ article.date_published }}</a></b><br><br>{{ article.text | safe }} <b><a href="../view_article/{{ article.url }}">Article by {{ article.owner.username }}, {{ article.date_published }}</a></b><br><br>{{ article.subtitle }}<br><br>{{ article.text }}
</p> </p>
</div> </div>
</div> </div>
@ -159,7 +159,7 @@
<a href="../view_article/{{ article.url }}"><img class="card-img-top" src="{% static article.thumbnail %}"></a> <a href="../view_article/{{ article.url }}"><img class="card-img-top" src="{% static article.thumbnail %}"></a>
<div class="card-body"> <div class="card-body">
<h5><a href="../view_article/{{ article.url }}">{{ article.title }}</a></h5> <h5><a href="../view_article/{{ article.url }}">{{ article.title }}</a></h5>
<p>{{ article.text | safe }}</p> <p><center>{{ article.subtitle | safe }}</center></p>
<h6><b>Article by {{ article.owner.username }}, {{ article.date_published }}</b></h6> <h6><b>Article by {{ article.owner.username }}, {{ article.date_published }}</b></h6>
</div> </div>
</div> </div>
@ -199,7 +199,7 @@
<div class="content"> <div class="content">
<h3 class="link-white"><a href="../view_article/{{ article.url }}">{{ article.title }}</a></h3> <h3 class="link-white"><a href="../view_article/{{ article.url }}">{{ article.title }}</a></h3>
<p class="link-white" style="text-align: justify;"> <p class="link-white" style="text-align: justify;">
<b><a href="../view_article/{{ article.url }}">Article by {{ article.owner.username }}, {{ article.date_published }}</a></b><br><br>{{ article.text | safe }} <b><a href="../view_article/{{ article.url }}">Article by {{ article.owner.username }}, {{ article.date_published }}</a></b><br><br>{{ article.subtitle | safe }}<br><br>{{ article.text | safe }}
</p> </p>
</div> </div>
</div> </div>
@ -213,7 +213,7 @@
<a href="../view_article/{{ article.url }}"><img class="card-img-top" src="{% static article.thumbnail %}"></a> <a href="../view_article/{{ article.url }}"><img class="card-img-top" src="{% static article.thumbnail %}"></a>
<div class="card-body"> <div class="card-body">
<h5><a href="../view_article/{{ article.url }}">{{ article.title }}</a></h5> <h5><a href="../view_article/{{ article.url }}">{{ article.title }}</a></h5>
<p>{{ article.text | safe }}</p> <p><center>{{ article.subtitle | safe }}</center></p>
<h6><b>Article by {{ article.owner.username }}, {{ article.date_published }}</b></h6> <h6><b>Article by {{ article.owner.username }}, {{ article.date_published }}</b></h6>
</div> </div>
</div> </div>

View file

@ -34,9 +34,9 @@ def articles(request):
article.title = article.title[:100] + '...' article.title = article.title[:100] + '...'
article.count = count article.count = count
if count != 5 and count != 0: if count != 5 and count != 0:
article.text = article.text[:400] + '...' article.text = article.text[:200] + '...'
else: else:
article.text = article.text[:600] + '...' article.text = article.text[:400] + '...'
count += 1 count += 1
if request.method != 'POST': if request.method != 'POST':
@ -53,8 +53,6 @@ def articles(request):
else: else:
message = 'Something went wrong!' message = 'Something went wrong!'
print(thumbnail)
context = {'page': 'article', 'articles': articles, 'form': form, 'message': message, 'thumbnail': thumbnail} context = {'page': 'article', 'articles': articles, 'form': form, 'message': message, 'thumbnail': thumbnail}
return render(request, 'articles/articles.html', context) 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') article.date_published = datetime.datetime.strftime(article.date_published, '%d/%m/%Y')
except: except:
pass pass
article.title = article.title[:50] + '...' if len(article.title) > 60:
article.title = article.title[:60] + '...'
if request.user.profile.type == 'editor': if request.user.profile.type == 'editor':
reviews = Article.objects.filter(status="Pending approval").exclude(author=request.user) 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') review.date_published = datetime.datetime.strftime(review.date_published, '%d/%m/%Y')
except: except:
pass pass
review.title = review.title[:50] + '...' if len(review.title) > 60:
review.title = review.title[:60] + '...'
context = {'page': 'article', 'articles': articles, 'reviews': reviews} 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') review.date_published = datetime.datetime.strftime(review.date_published, '%d/%m/%Y')
except: except:
pass pass
review.title = review.title[:50] + '...' if len(review.title) > 60:
review.title = review.title[:60] + '...'
published = Article.objects.filter(status="Published") published = Article.objects.filter(status="Published")
for publish in published: for publish in published:
@ -175,7 +176,8 @@ def write(request):
publish.date_published = datetime.datetime.strftime(publish.date_published, '%d/%m/%Y') publish.date_published = datetime.datetime.strftime(publish.date_published, '%d/%m/%Y')
except: except:
pass 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} context = {'page': 'article', 'articles': articles, 'reviews': reviews, 'published': published}

View file

@ -238,7 +238,7 @@
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseMining" <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseMining"
aria-expanded="true" aria-controls="collapseMining"> aria-expanded="true" aria-controls="collapseMining">
<i class="bx bx-calculator"></i> <i class="bx bx-calculator"></i>
<span>Mining (14)</span> <span>Mining (16)</span>
</a> </a>
<div id="collapseMining" class="collapse" aria-labelledby="headingMining" <div id="collapseMining" class="collapse" aria-labelledby="headingMining"
data-parent="#accordionSidebar"> data-parent="#accordionSidebar">
@ -258,6 +258,11 @@
<a class="collapse-item" href="{% url 'charts:blockchainsize' %}">Blockchain Size (Bytes)</a> <a class="collapse-item" href="{% url 'charts:blockchainsize' %}">Blockchain Size (Bytes)</a>
<a class="collapse-item" href="{% url 'charts:transactionsize' %}">Transaction Size (Bytes)</a> <a class="collapse-item" href="{% url 'charts:transactionsize' %}">Transaction Size (Bytes)</a>
<a class="collapse-item" href="{% url 'charts:difficulty' %}">Mining Difficulty</a> <a class="collapse-item" href="{% url 'charts:difficulty' %}">Mining Difficulty</a>
<a class="collapse-item" href="{% url 'charts:securitybudget' %}">Security Budget</a>
<a class="collapse-item" href="{% url 'charts:efficiency' %}">Breakeven Efficiency</a>
<!--
<a class="collapse-item" href="{% url 'charts:difficulty' %}">Reward / Hashrate</a>
-->
</div> </div>
</div> </div>
</li> </li>
@ -351,14 +356,14 @@
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseOthers" <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseOthers"
aria-expanded="true" aria-controls="collapseOthers"> aria-expanded="true" aria-controls="collapseOthers">
<i class="bx bx-info-circle"></i> <i class="bx bx-info-circle"></i>
<span>About Us</span> <span>About Us (1)</span>
</a> </a>
<div id="collapseOthers" class="collapse" aria-labelledby="headingOthers" <div id="collapseOthers" class="collapse" aria-labelledby="headingOthers"
data-parent="#accordionSidebar"> data-parent="#accordionSidebar">
<div class="py-2 collapse-inner rounded"> <div class="py-2 collapse-inner rounded">
<h6 class="collapse-header text-dark">Info:</h6> <h6 class="collapse-header text-dark">Info:</h6>
<a class="collapse-item" href="{% url 'charts:about' %}">About Us</a> <a class="collapse-item" href="{% url 'charts:about' %}">About Us</a>
<!--<a class="collapse-item" href="{% url 'charts:pageviews' %}">Moneroj.net Pageviews</a>--> <a class="collapse-item" href="{% url 'charts:pageviews' %}">Pageviews</a>
<a class="collapse-item" href="https://twitter.com/CryptoMorpheus_" target="_blank">Twitter</a> <a class="collapse-item" href="https://twitter.com/CryptoMorpheus_" target="_blank">Twitter</a>
</div> </div>
</div> </div>

View file

@ -102,12 +102,12 @@
</div> </div>
<div class="col"> <div class="col">
<p style="text-align: right;"> <p style="text-align: right;">
<i class="bx bx-money"></i> Raised 2.30 of 46 XMR <i class="bx bx-money"></i> Raised 5.41 of 46 XMR
</p> </p>
</div> </div>
</div> </div>
<div class="progress"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" style="width: 5%; color: #ff4d21" aria-valuenow="2.3035" aria-valuemin="0" aria-valuemax="46"></div> <div class="progress-bar bg-danger" role="progressbar" style="width: 12%; color: #ff4d21" aria-valuenow="5.41" aria-valuemin="0" aria-valuemax="46"></div>
</div> </div>
</div> </div>
</div> </div>
@ -140,12 +140,12 @@
</div> </div>
<div class="col"> <div class="col">
<p style="text-align: right;"> <p style="text-align: right;">
<i class="bx bx-money"></i> Raised 2.30 of 46 XMR <i class="bx bx-money"></i> Raised 5.41 of 46 XMR
</p> </p>
</div> </div>
</div> </div>
<div class="progress"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" style="width: 5%; color: #ff4d21" aria-valuenow="2.3035" aria-valuemin="0" aria-valuemax="46"></div> <div class="progress-bar bg-danger" role="progressbar" style="width: 12%; color: #ff4d21" aria-valuenow="5.41" aria-valuemin="0" aria-valuemax="46"></div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -117,8 +117,8 @@
x: {{ dates|safe }}, x: {{ dates|safe }},
y: {{ unique|safe }}, y: {{ unique|safe }},
line: { line: {
color: '#777777' color: '#1dddcd'
,width: 1 ,width: 2
} }
}; };
@ -129,8 +129,8 @@
x: {{ dates|safe }}, x: {{ dates|safe }},
y: {{ unique|safe }}, y: {{ unique|safe }},
line: { line: {
color: '#777777' color: '#1dddcd'
,width: 1 ,width: 2
} }
}; };
@ -144,9 +144,9 @@ var layout = {
{ {
xref: 'paper', xref: 'paper',
yref: 'paper', yref: 'paper',
x: 0.02, x: 0.98,
xanchor: 'auto', xanchor: 'auto',
y: 0.50, y: 0.98,
yanchor: 'auto', yanchor: 'auto',
text: 'Moneroj<br>https://www.moneroj.net', text: 'Moneroj<br>https://www.moneroj.net',
showarrow: false, showarrow: false,
@ -162,8 +162,8 @@ var layout = {
}], }],
separators: ",.", separators: ",.",
legend: { legend: {
x: 0.02, x: 0.98,
y: 0.02, y: 0.50,
bgcolor: '#333333', bgcolor: '#333333',
bordercolor: '#5f5f5f', bordercolor: '#5f5f5f',
borderwidth: 1, borderwidth: 1,
@ -208,8 +208,8 @@ var layout = {
,zeroline: true ,zeroline: true
}, },
margin: { margin: {
l: 120, l: 80,
r: 120, r: 30,
b: 35, b: 35,
t: 10, t: 10,
pad: 10 pad: 10
@ -224,7 +224,7 @@ var layout_mobile = {
namelength: -1 namelength: -1
}, },
legend: { legend: {
x: 0.02, x: 0.98,
y: 0.98, y: 0.98,
bgcolor: '#000000', bgcolor: '#000000',
bordercolor: '#5f5f5f', bordercolor: '#5f5f5f',

BIN
static/img/articles/1/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
static/img/articles/1/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
static/img/articles/1/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
static/img/articles/1/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
static/img/articles/1/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

BIN
static/img/articles/1/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
static/img/articles/1/7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
static/img/articles/1/8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
static/img/articles/1/9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View file