-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort organizations by voting domain if it's enabled
- Loading branch information
1 parent
c5b4393
commit c0481a7
Showing
7 changed files
with
99 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
backend/hub/templates/hub/ngo/components/ngo_listing_detail.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{% load static %} | ||
|
||
<div class="need is-flex container infinite-item"> | ||
<div class="card-image need-logo is-hidden-mobile"> | ||
<img src="{% if ngo.logo %}{{ ngo.logo.url }}{% else %}{% static 'images/logo-demo.png' %}{% endif %}" alt="{{ ngo.name }}"> | ||
</div> | ||
|
||
<div class="card-info"> | ||
<div class="flex-align-center"> | ||
<div class="card-image need-logo is-hidden-tablet"> | ||
<img src="{% if ngo.logo %}{{ ngo.logo.url }}{% else %}{% static 'images/logo-demo.png' %}{% endif %}" alt="{{ ngo.name }}"> | ||
</div> | ||
<div class="need-title is-hidden-tablet">{{ ngo.name }}</div> | ||
</div> | ||
<div class="need-title is-hidden-mobile"> | ||
<a class="has-text-black" href="{% url 'ngo-detail' ngo.pk %}">{{ ngo.name }}</a> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="need-call2action"> | ||
<a | ||
class="button is-flex has-background-success-dark has-text-weight-bold has-text-white" | ||
href="{% url 'ngo-detail' ngo.pk %}"> | ||
Vizualizează | ||
</a> | ||
</div> | ||
|
||
</div> | ||
|
||
<hr class="is-hidden-tablet" style="margin: 0 10%;"/> | ||
<hr class="is-hidden-mobile half-width"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% for ngo in page_obj %} | ||
|
||
{% include "hub/ngo/components/ngo_listing_detail.html" %} | ||
|
||
{% endfor %} |
17 changes: 17 additions & 0 deletions
17
backend/hub/templates/hub/ngo/components/ngos_listing_by_voting_domain.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<hr class="is-hidden-mobile "/> | ||
|
||
|
||
{% for section_details in page_obj %} | ||
|
||
<h3 class="section-title"> | ||
{{ section_details.domain.name }} ({{ section_details.organizations|length }}) | ||
</h3> | ||
|
||
{% for ngo in section_details.organizations %} | ||
|
||
{% include "hub/ngo/components/ngo_listing_detail.html" %} | ||
|
||
{% endfor %} | ||
|
||
{% endfor %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters