Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branding done, need to bootstrap and make it consistent
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends 'admin/base.html' %} | ||
|
||
{% block extrastyle %} | ||
{{ block.super }} | ||
<style> | ||
:root { | ||
--primary: #fd7e14; | ||
--secondary: #ac560e; | ||
} | ||
</style> | ||
{% endblock %} | ||
|
||
{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | Portion Mate Django Admin{% endblock %} | ||
|
||
{% block branding %} | ||
<h1 id="site-name"><a href="{% url 'admin:index' %}" style="color:#ffffff;"> | ||
<img src="https://portion-mate-glasgow.readthedocs.io/en/latest/assets/logo.png" width="30" height="30" style="display: inline-block!important;" alt=""> | ||
Portion Mate | ||
</a></h1> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "rest_framework/base.html" %} | ||
|
||
{% block title %}{% if name %}{{ name }} | {% endif %}Portion Mate API{% endblock %} | ||
|
||
{% block branding %} | ||
<a class='navbar-brand' rel="nofollow" href='#'> | ||
<img src="https://portion-mate-glasgow.readthedocs.io/en/latest/assets/logo.png" width="30" height="30" style="display: inline-block!important;" alt=""> | ||
Portion Mate | ||
</a> | ||
{% endblock %} |