Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema_detail #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 23 additions & 16 deletions ebpub/ebpub/templates/db/schema_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,25 @@
{% endblock %}

{% block content %}
<div id="content">
<div id="content" class="row">
<div class="eight col">
<h1>{% map_icon_img schema %} {{ schema.plural_name|capfirst }}</h1>
<p>{{ schema.short_description }}</p>
<!-- block extradescription -->
<div class="for_title">{{ schema.short_description }} <!-- ShareThis buttons.... <span class="social_footer" style="float:right"><span class="st_fblike_hcount"></span><span class="st_plusone_hcount"></span><span class="st_twitter_hcount"></span></span> --></div> <!-- block extradescription -->
{% block extradescription %}{%endblock%}
<!-- end block extradescription -->
<h2>About this section</h2>
<dl>
<dt>Source</dt>
<dd>{{ schema.short_source|default:"–" }}</dd>
<dt>Updated</dt>
<dd>{{ schema.update_frequency|default:"–" }}</dd>
</dl>
{% if schema.allow_charting %}
{% with "filter/" as search_url %}
{% include "db/snippets/filter_left_nav.html" %}
{% endwith %}
{% endif %}
{{ schema.summary|default:"–"|safe }}
<div class="about_schema_meta">
From <span class="special"> {{ schema.source|default:"–"|safe }} </span>
&nbsp;|&nbsp;
Updated <span class="special">
{% if schema.slug == "tweets" %}
Every 5 minutes
{% else %}
{{ schema.update_frequency|default:"–"|safe }}
{% endif %}
</span>
</div>
{% if schema.allow_charting %}
{% if date_chart %}
<div id="date-chart">
Expand All @@ -46,8 +47,8 @@ <h3><strong>{{ date_chart.total_count|intcomma }}</strong> {% schema_plural_name
{% endif %}
{% for location_chart in location_chartfield_list %}
<div id="location-{{ location_chart.location_type.slug }}">
<h2>By {{ location_chart.location_type.name }}</h2>
<table>
<h2 style="color:#DE6666">By {{ location_chart.location_type.name }}</h2>
<table class="schema_detail_location_table">
{% for location in location_chart.locations %}
<tr>
<td class="label">
Expand Down Expand Up @@ -132,5 +133,11 @@ <h2>Most recent {{ schema.plural_name }}</h2>
</div><!--/ #latest-items -->
{% endif %}
{% endif %}
</div>
{% if schema.allow_charting %}
{% with "filter/" as search_url %}
{% include "db/snippets/filter_left_nav.html" %}
{% endwith %}
{% endif %}
</div><!--/ #content -->
{% endblock %}