mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-17 08:20:16 +02:00
Remove template hooks
This commit is contained in:
parent
b3534f4f44
commit
401c093b74
@ -10,7 +10,7 @@ from django import template
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.cache import cache
|
from django.core.cache import cache
|
||||||
|
|
||||||
from allianceauth import __version__, hooks
|
from allianceauth import __version__
|
||||||
from allianceauth.authentication.task_statistics.counters import (
|
from allianceauth.authentication.task_statistics.counters import (
|
||||||
dashboard_results,
|
dashboard_results,
|
||||||
)
|
)
|
||||||
@ -103,14 +103,6 @@ class AppAnnouncementHook:
|
|||||||
f"https://gitlab.com/api/v4/projects/{quote_plus(self.repository_namespace)}/issues"
|
f"https://gitlab.com/api/v4/projects/{quote_plus(self.repository_namespace)}/issues"
|
||||||
f"?labels={self.label}")
|
f"?labels={self.label}")
|
||||||
|
|
||||||
@hooks.register("app_announcement_hook")
|
|
||||||
def test_hook():
|
|
||||||
return AppAnnouncementHook("test GitLab app", "r0kym/allianceauth-example-plugin", AppAnnouncementHook.RepositoryKind.GITLAB)
|
|
||||||
|
|
||||||
@hooks.register("app_announcement_hook")
|
|
||||||
def test_hook_2():
|
|
||||||
return AppAnnouncementHook("test GitHub app", "r0kym/test", AppAnnouncementHook.RepositoryKind.GITHUB)
|
|
||||||
|
|
||||||
@register.simple_tag()
|
@register.simple_tag()
|
||||||
def decimal_widthratio(this_value, max_value, max_width) -> str:
|
def decimal_widthratio(this_value, max_value, max_width) -> str:
|
||||||
if max_value == 0:
|
if max_value == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user