django-controlcenter icon indicating copy to clipboard operation
django-controlcenter copied to clipboard

[feature request] Add admin link

Open luminousmen opened this issue 9 years ago • 7 comments

I am wondering is it'll be a good idea to add link to django-controlcenter app from admin page without guessing which url I need to paste.
What do you think?

luminousmen avatar May 09 '16 12:05 luminousmen

That's totally my thought! The thing is: I'm not sure if there is any way to put that link on django's original dashboard without overriding the admin template (I just don't use 'vanilla' admin). But then, if you use advanced admin apps such as django-grappelli or django-admin-tools they do provide easy ways to place any link you need. And that depends on your taste and use case.

byashimov avatar May 09 '16 12:05 byashimov

@byashimov Cool! But I don't like useless dependencies=) There is a hack. You can create model without doing migrations and override url to dashboards. In this case you don't need to override admin templates

luminousmen avatar May 09 '16 12:05 luminousmen

I've got you. But then it will appear on dash even if you do not need that, because of admin autodiscover.

byashimov avatar May 09 '16 12:05 byashimov

You can provide a workaround in here or put it directly in docs as a pull request, say, on example page, then I will publish it on readthedocs.

byashimov avatar May 09 '16 13:05 byashimov

For what it's worth, I did this by overriding the admin/base_site.html template (it's small), and adding to the userlinks block:

{% block userlinks %}
    <a href="{% url 'controlcenter:dashboard' 'foo' %}">Dashboard</a> /
    {{ block.super }}
{% endblock %}

PiDelport avatar Aug 29 '18 12:08 PiDelport

the nav-global block is also useful for this.

but it's true that this could be included in the docs somewhere...

minusf avatar Jan 14 '19 13:01 minusf

I would be nice to have the possibility to show a link to the dashboard using just a setting.

fabiocaccamo avatar Aug 28 '23 13:08 fabiocaccamo