Skip to content

Commit

Permalink
feat(diray): add red color if diary has not comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hojagulyyev committed Dec 26, 2023
1 parent 15187fd commit d148c0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions templates/clans/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -544,21 +544,21 @@ <h2 class="section-title">Overview</h2>
data: datasetData{{ forloop.counter }},
fill: false,
lineTension: .35,
borderWidth: 1.5,
borderWidth: 1,
borderColor: "{{ forloop.counter|get_statistic_color_by_color_index }}",
borderCapStyle: 'butt',
borderDash: [],
borderDashOffset: 0,
borderJoinStyle: 'bevel',
pointBorderColor: "{{ forloop.counter|get_statistic_color_by_color_index }}",
pointBackgroundColor: "#1d2333",
pointBorderWidth: 2,
pointHoverRadius: 5,
pointBorderWidth: 1,
pointHoverRadius: 1,
pointHoverBackgroundColor: "#1d2333",
pointHoverBorderColor: "{{ forloop.counter|get_statistic_color_by_color_index }}",
pointHoverBorderWidth: 4,
pointRadius: 2,
pointHitRadius: 40
pointHoverBorderWidth: 1,
pointRadius: 1,
pointHitRadius: 1
},
{% endfor %}
]
Expand Down
3 changes: 2 additions & 1 deletion templates/includes/diary-widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
<!-- /WIDGET BOX SETTINGS -->

<!-- WIDGET BOX STATUS -->
<div class="widget-box-status">
<div class="widget-box-status" style="
{% if not diary.commits.count %}background-color: #ff000030; border-radius: 10px{% endif %}">
<!-- WIDGET BOX STATUS CONTENT -->
<div class="widget-box-status-content">
<!-- USER STATUS -->
Expand Down

0 comments on commit d148c0d

Please sign in to comment.