|
@@ -9,6 +9,12 @@ __all__ = (
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+PLUGIN_NAME_TEMPLATE = """
|
|
|
|
|
+<img class="plugin-icon" src="{{ record.icon_url }}">
|
|
|
|
|
+<a href="{% url 'core:plugin' record.config_name %}">{{ record.title_long }}</a>
|
|
|
|
|
+"""
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
class PluginVersionTable(BaseTable):
|
|
class PluginVersionTable(BaseTable):
|
|
|
version = tables.Column(
|
|
version = tables.Column(
|
|
|
verbose_name=_('Version')
|
|
verbose_name=_('Version')
|
|
@@ -39,8 +45,8 @@ class PluginVersionTable(BaseTable):
|
|
|
|
|
|
|
|
|
|
|
|
|
class CatalogPluginTable(BaseTable):
|
|
class CatalogPluginTable(BaseTable):
|
|
|
- title_long = tables.Column(
|
|
|
|
|
- linkify=('core:plugin', [tables.A('config_name')]),
|
|
|
|
|
|
|
+ title_long = columns.TemplateColumn(
|
|
|
|
|
+ template_code=PLUGIN_NAME_TEMPLATE,
|
|
|
verbose_name=_('Name')
|
|
verbose_name=_('Name')
|
|
|
)
|
|
)
|
|
|
author = tables.Column(
|
|
author = tables.Column(
|