Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Merge requests
!506
Resolve "Support default dashboard for anonymous users"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Support default dashboard for anonymous users"
382-public-dashboard
into
master
Overview
0
Commits
5
Pipelines
1
Changes
6
Merged
magicfelix
requested to merge
382-public-dashboard
into
master
4 years ago
Overview
0
Commits
5
Pipelines
1
Changes
6
Expand
Closes
#382 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
45db81f9
5 commits,
4 years ago
6 files
+
71
−
44
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
aleksis/core/templates/core/index.html
+
38
−
35
Options
{% extends 'core/base.html' %}
{% load i18n static dashboard %}
{% load i18n static dashboard
rules
%}
{% block browser_title %}{% blocktrans %}Home{% endblocktrans %}{% endblock %}
{% block no_page_title %}{% endblock %}
@@ -9,51 +9,54 @@
{% endblock %}
{% block content %}
<a
class=
"btn-flat waves-effect waves-light right"
href=
"{% url "
edit_dashboard
"
%}"
>
<i
class=
"material-icons left"
>
edit
</i>
{% trans "Edit dashboard" %}
</a>
{% has_perm "core.edit_dashboard" user as can_edit_dashboard %}
{% if can_edit_dashboard %}
<a
class=
"btn-flat waves-effect waves-light right"
href=
"{% url "
edit_dashboard
"
%}"
>
<i
class=
"material-icons left"
>
edit
</i>
{% trans "Edit dashboard" %}
</a>
{% endif %}
<h4>
{{ request.site.preferences.general__title }}
</h4>
{% if user.is_authenticated %}
{% for notification in unread_notifications %}
<div
class=
"alert primary scale-transition"
>
<div>
<i
class=
"material-icons left"
>
info
</i>
<div
class=
"right"
>
<a
class=
"btn-flat waves-effect"
href=
"{% url "
notification_mark_read
"
notification.id
%}"
>
<i
class=
"material-icons center"
>
close
</i>
</a>
</div>
{% for notification in unread_notifications %}
<div
class=
"alert primary scale-transition"
>
<div>
<i
class=
"material-icons left"
>
info
</i>
<strong>
{{ notification.title }}
</strong>
<p>
{{ notification.description }}
</p>
<div
class=
"right"
>
<a
class=
"btn-flat waves-effect"
href=
"{% url "
notification_mark_read
"
notification.id
%}"
>
<i
class=
"material-icons center"
>
close
</i>
</a>
</div>
</div>
{% endfor %}
{% include "core/partials/announcements.html" with announcements=announcements %}
<div
class=
"row"
id=
"live_load"
>
{% for widget in widgets %}
<div
class=
"col s{{ widget.size_s }} m{{ widget.size_m }} l{{ widget.size_l }} xl{{ widget.size_xl }}"
>
{% include_widget widget %}
</div>
{% endfor %}
<strong>
{{ notification.title }}
</strong>
<p>
{{ notification.description }}
</p>
</div>
</div>
{% endfor %}
{% include "core/partials/announcements.html" with announcements=announcements %}
{% if default_dashboard and widgets %}
<div
class=
"grey-text right"
>
{% blocktrans %}
You didn't customise your dashboard so that you see the system default. Please click on "Edit dashboard" to
customise your personal dashboard.
{% endblocktrans %}
<div
class=
"row"
id=
"live_load"
>
{% for widget in widgets %}
<div
class=
"col s{{ widget.size_s }} m{{ widget.size_m }} l{{ widget.size_l }} xl{{ widget.size_xl }}"
>
{% include_widget widget %}
</div>
{% endif %}
{% endfor %}
</div>
{% if default_dashboard and widgets and can_edit_dashboard %}
<div
class=
"grey-text right"
>
{% blocktrans %}
You didn't customise your dashboard so that you see the system default. Please click on "Edit dashboard" to
customise your personal dashboard.
{% endblocktrans %}
</div>
{% endif %}
{% if activities or notifications %}
<div
class=
"row"
>
<div
class=
"col s12 m6"
>
<h5>
{% blocktrans %}Last activities{% endblocktrans %}
</h5>
Loading