Skip to content
Snippets Groups Projects
Unverified Commit ecd9df9c authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #684 from OpenTechFund/feature/link-fund-round-on-submission

Link the fund/lab on a submission detail viewto the public fund/lab page
parents 9fd79c71 acf5d355
No related branches found
No related tags found
No related merge requests found
{% extends "base-apply.html" %} {% extends "base-apply.html" %}
{% load static workflow_tags %} {% load static workflow_tags wagtailcore_tags %}
{% block title %}{{ object.title }}{% endblock %} {% block title %}{{ object.title }}{% endblock %}
{% block body_class %}{% endblock %} {% block body_class %}{% endblock %}
{% block content %} {% block content %}
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<h1 class="beta heading heading--no-margin heading--bold">{{ object.title }}</h1> <h1 class="beta heading heading--no-margin heading--bold">{{ object.title }}</h1>
<h5 class="heading heading--meta"> <h5 class="heading heading--meta">
<span>{{ object.stage }}</span> <span>{{ object.stage }}</span>
<span>{{ object.page }}</span> <span>{% if public_page %}<a class="link--transparent link--underlined" href="{% pageurl public_page %}" >{{ object.page }}</a>{% else %}{{ object.page }}{% endif %}</span>
<span>{{ object.round }}</span> <span>{{ object.round }}</span>
<span>Lead: {{ object.lead }}</span> <span>Lead: {{ object.lead }}</span>
</h5> </h5>
......
...@@ -153,8 +153,11 @@ class AdminSubmissionDetailView(ReviewContextMixin, ActivityContextMixin, Delega ...@@ -153,8 +153,11 @@ class AdminSubmissionDetailView(ReviewContextMixin, ActivityContextMixin, Delega
if self.object.next: if self.object.next:
other_submissions = other_submissions.exclude(id=self.object.next.id) other_submissions = other_submissions.exclude(id=self.object.next.id)
public_page = self.object.get_from_parent('detail')()
return super().get_context_data( return super().get_context_data(
other_submissions=other_submissions, other_submissions=other_submissions,
public_page=public_page,
**kwargs, **kwargs,
) )
......
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
text-decoration: underline; text-decoration: underline;
} }
&--transparent {
color: $color--white;
}
&--bold { &--bold {
font-weight: $weight--bold; font-weight: $weight--bold;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment