-
-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6623e2
commit 829c44d
Showing
4 changed files
with
111 additions
and
114 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
161 changes: 79 additions & 82 deletions
161
app/townsquare/templates/townsquare/shared/feednav.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 |
---|---|---|
@@ -1,84 +1,81 @@ | ||
<div class="townsquare_nav-list my-1"> | ||
<div class="townsquare_block-header" data-target="feeds" > | ||
Feeds | ||
</div> | ||
<ul id=feeds class="nav d-inline-block font-body mb-2"> | ||
{% for this_tab in tabs %} | ||
{% include 'townsquare/shared/thistab.html' %} | ||
{% endfor %} | ||
</ul> | ||
{% if hackathon_tabs|length %} | ||
<div class="townsquare_block-header mt-1" data-target="hackathons"> | ||
Hackathons | ||
</div> | ||
<ul id=hackathons class="nav d-inline-block font-body mb-2"> | ||
{% for this_tab in hackathon_tabs %} | ||
{% include 'townsquare/shared/thistab.html' %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
<div class="townsquare_nav-list mb-1 mt-1"> | ||
<div class="townsquare_block-header" data-target="filter"> | ||
Filter | ||
</div> | ||
<ul id=filter class="nav d-inline-block font-body mb-2"> | ||
{% for tag in tags %} | ||
{% include 'townsquare/shared/tag.html' %} | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="townsquare_nav-list my-3"> | ||
<div class="townsquare_block-header" data-target="feeds" > | ||
Feeds | ||
</div> | ||
<ul id=feeds class="nav d-inline-block font-caption mb-2"> | ||
{% for this_tab in tabs %} | ||
{% include 'townsquare/shared/thistab.html' %} | ||
{% endfor %} | ||
</ul> | ||
{% if hackathon_tabs|length %} | ||
<div class="townsquare_block-header mt-2" data-target="hackathons"> | ||
Hackathons | ||
</div> | ||
<ul id=hackathons class="nav d-inline-block font-caption mb-2"> | ||
{% for this_tab in hackathon_tabs %} | ||
{% include 'townsquare/shared/thistab.html' %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
<div class="townsquare_nav-list my-3"> | ||
<div class="townsquare_block-header" data-target="filter"> | ||
Filter | ||
</div> | ||
<ul id=filter class="nav d-inline-block font-caption mb-2"> | ||
{% for tag in tags %} | ||
{% include 'townsquare/shared/tag.html' %} | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class="townsquare_nav-list my-1 tribe"> | ||
<div class="townsquare_block-header" data-target="tribes"> | ||
Shortcuts | ||
</div> | ||
<div id="tribes"> | ||
<ul class="nav d-inline-block font-body"> | ||
{% for tribe in following_tribes %} | ||
<li class="nav-item"> | ||
<a data-toggle="tooltip" title="@{{tribe.title}}'s Tribe" class="nav-link nav-line" href="/{{ tribe.title }}"> | ||
<img src="{{tribe.avatar_url}}" class="rounded avatar"> | ||
<span class="nav-title">{{tribe.title}}</span> | ||
{% if tribe.badge %} | ||
<span class="nav-badge">({{ tribe.badge }})</span> | ||
{% endif %} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<div class="townsquare_nav-list_footer font-body font-weight-semibold"> | ||
<a href="{% url "tribes_directory" %}"> | ||
Explore Tribes | ||
<i class="ml-1 fab fa-wpexplorer font-weight-normal"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="townsquare_nav-list my-3 tribe"> | ||
<div class="townsquare_block-header" data-target="tribes"> | ||
Shortcuts | ||
</div> | ||
<div id="tribes"> | ||
<ul class="nav d-inline-block font-caption"> | ||
{% for tribe in following_tribes %} | ||
<li class="nav-item"> | ||
<a data-toggle="tooltip" title="@{{tribe.title}}'s Tribe" class="nav-link nav-line" href="/{{ tribe.title }}"> | ||
<img src="{{tribe.avatar_url}}" class="rounded-circle avatar"> | ||
<span class="nav-title">{{tribe.title}}</span> | ||
{% if tribe.badge %} | ||
<span class="nav-badge">({{ tribe.badge }})</span> | ||
{% endif %} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<div class="townsquare_nav-list_footer font-body font-weight-semibold"> | ||
<a href="{% url "tribes_directory" %}"> | ||
Explore Tribes | ||
<i class="ml-1 fab fa-wpexplorer font-weight-normal"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="townsquare_nav-list my-2 tribe"> | ||
<div class="townsquare_block-header" data-target="suggested-tribes"> | ||
Suggested Tribes | ||
</div> | ||
<div id="suggested-tribes"> | ||
<ul class="nav d-inline-block font-body col-sm-9 pr-2" style="padding-right: 0"> | ||
{% for tribe in suggested_tribes %} | ||
<li class="nav-item d-flex justify-content-between align-items-center my-2"> | ||
<a href="/profile/{{ tribe.title }}" class="d-flex nav-link nav-line pr-0 mr-0"> | ||
<img src="{{tribe.avatar_url}}" class="nav_avatar mr-4" /> | ||
<span class="font-caption"> | ||
<span class="nav-title font-weight-semibold pt-0 mb-0 text-capitalize">{{tribe.title}}</span><br> | ||
<p class="mb-0"> | ||
<i class="fas fa-user font-smaller-4 mr-1"></i> | ||
<span class="font-weight-semibold">{{ tribe.follower_count }}</span> followers | ||
</p> | ||
</span> | ||
</a> | ||
<a class="follow_tribe btn btn-sm btn-gc-blue font-weight-bold font-smaller-6 px-3" href="#" data-jointribe="{{ tribe.title }}"> | ||
Follow | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="townsquare_nav-list my-3 tribe"> | ||
<div class="townsquare_block-header" data-target="suggested-tribes"> | ||
Suggested Tribes | ||
</div> | ||
<div id="suggested-tribes"> | ||
<ul class="nav d-inline-block font-body col-sm-9 col-lg-8 pr-2" style="padding-right: 0"> | ||
{% for tribe in suggested_tribes %} | ||
<li class="nav-item d-flex justify-content-between align-items-center my-1"> | ||
<a href="/profile/{{ tribe.title }}" class="d-flex nav-link nav-line pr-0 mr-0"> | ||
<img src="{{tribe.avatar_url}}" class="rounded-circle avatar mr-2" /> | ||
<span class="font-caption"> | ||
<span class="nav-title pt-0 mb-0">{{tribe.title}}</span> | ||
<span class="font-smaller-7">({{ tribe.follower_count }} followers)</span> | ||
</span> | ||
</a> | ||
<a class="follow_tribe btn btn-sm btn-gc-blue font-weight-bold font-smaller-7 px-3" href="#" data-jointribe="{{ tribe.title }}"> | ||
Follow | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<li class="nav-item" {% if tag.3 %} data-toggle="tooltip" title="The {{ tag.3 }} posts in the last 24 hours in the {{tag.0}} category." {% endif %} > | ||
<a data-toggle="tooltip" class="nav-link nav-line {% if tab == tag.2 %}active{% endif %} " href="/?tab={{tag.2}}"> | ||
<span class="nav-title"> | ||
<i class="fas fa-{{tag.1}} mr-1"></i> | ||
{{tag.0}} | ||
{% if tag.3 %} | ||
<span class="nav-badge">({{ tag.3 }})</span> | ||
{% endif %} | ||
</span> | ||
</a> | ||
</li> | ||
<li class="nav-item" {% if tag.3 %} data-toggle="tooltip" title="The {{ tag.3 }} posts in the last 24 hours in the {{tag.0}} category." {% endif %} > | ||
<a data-toggle="tooltip" class="nav-link nav-line pb-1 {% if tab == tag.2 %}active{% endif %} " href="/?tab={{tag.2}}"> | ||
<span class="nav-title"> | ||
<i class="fas fa-{{tag.1}} mr-1"></i> | ||
{{tag.0}} | ||
{% if tag.3 %} | ||
<span class="nav-badge">({{ tag.3 }})</span> | ||
{% endif %} | ||
</span> | ||
</a> | ||
</li> |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<li class="nav-item d-flex align-items-center"> | ||
{% if this_tab.url_slug %} | ||
<a data-toggle="tooltip" title="{{this_tab.helper_text}}" href="{% url 'hackathon' this_tab.url_slug %}townsquare/?tab={{this_tab.slug}}" class="nav-link nav-line {% if tab == this_tab.slug %}active{% endif %} "> | ||
<span class="nav-title">{{ this_tab.title }}</span> | ||
{% if this_tab.badge %} | ||
<span class="nav-badge">({{ this_tab.badge }})</span> | ||
{% endif %} | ||
</a> | ||
<a href="/townsquare/?tab={{ this_tab.slug }}" data-toggle="tooltip" title="Filter {{ this_tab.title}} Posts"> | ||
<i class="fas fa-filter"></i> | ||
</a> | ||
{% else %} | ||
<a data-toggle="tooltip" title="{{this_tab.helper_text}}" class="nav-link nav-line {% if tab == this_tab.slug %}active{% endif %} " href="#" data-slug="{{this_tab.slug}}"> | ||
<span class="nav-title">{{this_tab.title}}</span> | ||
{% if this_tab.badge %} | ||
<span class="nav-badge">({{ this_tab.badge }})</span> | ||
{% endif %} | ||
</a> | ||
{% endif %} | ||
</li> | ||
<li class="nav-item d-flex align-items-center"> | ||
{% if this_tab.url_slug %} | ||
<a data-toggle="tooltip" title="{{this_tab.helper_text}}" href="{% url 'hackathon' this_tab.url_slug %}townsquare/?tab={{this_tab.slug}}" class="nav-link nav-line pb-1 {% if tab == this_tab.slug %}active{% endif %} "> | ||
<span class="nav-title">{{ this_tab.title }}</span> | ||
{% if this_tab.badge %} | ||
<span class="nav-badge">({{ this_tab.badge }})</span> | ||
{% endif %} | ||
</a> | ||
<a href="/townsquare/?tab={{ this_tab.slug }}" data-toggle="tooltip" title="Filter {{ this_tab.title}} Posts"> | ||
<i class="fas fa-filter"></i> | ||
</a> | ||
{% else %} | ||
<a data-toggle="tooltip" title="{{this_tab.helper_text}}" class="nav-link nav-line {% if tab == this_tab.slug %}active{% endif %} " href="#" data-slug="{{this_tab.slug}}"> | ||
<span class="nav-title">{{this_tab.title}}</span> | ||
{% if this_tab.badge %} | ||
<span class="nav-badge">({{ this_tab.badge }})</span> | ||
{% endif %} | ||
</a> | ||
{% endif %} | ||
</li> |