mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 06:22:16 +00:00
Initial work at coercing activity feed into showing RAs
Also shows Asset/Supplier on the homepage feed.
This commit is contained in:
10
versioning/templates/object_button.html
Normal file
10
versioning/templates/object_button.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% load to_class_name from filters %}
|
||||
{# pass in variable "object" to this template #}
|
||||
|
||||
{% if object.name %}
|
||||
<a title="{% if object.is_rig == False %}Non-rig{% elif object.dry_hire %}Dry Hire{% elif object.is_rig %}Rig{%else%}{{object|to_class_name}}{% endif %} | '{{object.name}}'" href="{{ object.get_absolute_url }}">{% if object.is_rig == False %}Non-rig{% elif object.dry_hire %}Dry Hire{% elif object.is_rig %}Rig{%else%}{{object|to_class_name}}{% endif %} | '{{ object.activity_feed_string|default:object.name }}'</a>
|
||||
{% elif object.asset_id %}
|
||||
<a href="{{ object.get_absolute_url }}">Asset | {{object.asset_id }} {{object.description }}</a>
|
||||
{% elif object.event %}
|
||||
<a href="{{ object.get_absolute_url }}">{{object|to_class_name}} | {{object.event.name }}</a>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user