'View in admin' link for post popup menu (#134)
This commit is contained in:
parent
c87ad8116f
commit
dcf2d801b9
@ -219,6 +219,7 @@ class Post(StatorModel):
|
|||||||
action_delete = "{view}delete/"
|
action_delete = "{view}delete/"
|
||||||
action_edit = "{view}edit/"
|
action_edit = "{view}edit/"
|
||||||
action_reply = "/compose/?reply_to={self.id}"
|
action_reply = "/compose/?reply_to={self.id}"
|
||||||
|
admin_edit = "/djadmin/activities/post/{self.id}/change/"
|
||||||
|
|
||||||
def get_scheme(self, url):
|
def get_scheme(self, url):
|
||||||
return "https"
|
return "https"
|
||||||
|
@ -954,12 +954,13 @@ table.metadata td.name {
|
|||||||
|
|
||||||
.post .actions menu.enabled {
|
.post .actions menu.enabled {
|
||||||
display: block;
|
display: block;
|
||||||
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post .actions menu a {
|
.post .actions menu a {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
display: block;
|
display: block;
|
||||||
width: 160px;
|
width: 165px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,6 +49,11 @@
|
|||||||
<i class="fa-solid fa-arrow-up-right-from-square"></i> See Original
|
<i class="fa-solid fa-arrow-up-right-from-square"></i> See Original
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if request.user.admin %}
|
||||||
|
<a href="{{ post.urls.admin_edit }}">
|
||||||
|
<i class="fa-solid fa-gear"></i> View In Admin
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</menu>
|
</menu>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Reference in New Issue
Block a user