AspNetCore.Docs/common/_templates/page.html

89 lines
3.4 KiB
HTML
Raw Normal View History

2015-10-08 01:28:31 +08:00
{% extends "!page.html" %}
{% set disqus_shortname = 'aspnetdocs' %}
{#########################}
{# for disqus commenting #}
{#########################}
{% macro comments() %}
<hr/>
<h2 id="comments">
Comments
<a class="headerlink" href="#comments" title="Permalink to this headline"></a>
</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ disqus_shortname }}'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
2015-10-08 01:28:31 +08:00
{% endmacro %}
{%- block body %}
{{ super() }}
<!-- Helpfulness -->
<div id="helpful-position"></div>
<div id="helpful" class="helpfulness-container fixed" style="display:none;">
<div class="helpfulness">
<div class="helpfulness-form">
<h2>Was this page helpful?</h2>
<span>Your feedback about this content is important. Let us know what you think.</span>
<a id="helpfulness-btn-yes" href="javascript:;" class="common-btn first">Yes</a>
<a id="helpfulness-btn-no" href="javascript:;" class="common-btn">No</a>
</div>
<div class="helpfulness-form-no" style="display:none;">
<h2>Was this page helpful?</h2>
Sorry this wasn't helpful.
<input type="text" id="txt-helpfulness" placeholder="Please let us know why this wasn't helpful">
<span id="helpfulness-characters-left">characters remaining</span>
<a id="helpfulness-btn-submit" href="javascript:;" class="common-btn">Submit</a>
<a id="helpfulness-btn-skip" href="javascript:;" class="common-btn secondary">Skip this</a>
</div>
<a href="javascript:;" class="helpfulness-close"></a>
<div class="messages processing" style="display:none;">
Sending feedback...
</div>
<div class="messages success" style="display:none;">
Thank you for your feedback!
</div>
<div class="messages error" style="display:none;">
Error during submission!
</div>
</div>
2015-10-08 01:28:31 +08:00
</div>
<!-- wedc -->
<noscript>
<img alt="" width="1" height="1" src="https://c.microsoft.com/trans_pixel.aspx"/>
</noscript>
{% if disqus_shortname and 'index' not in pagename and on_rtd %}
{% if next or prev %}
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
{% if next %}
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
{% endif %}
{% if prev %}
<a href="{{ prev.link|e }}" class="btn btn-neutral" title="{{ prev.title|striptags|e }}" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
{% endif %}
</div>
{% endif %}
{{ comments() }}
{% else %}
<!-- disqus commenting disabled; set disqus_shortname -->
{% endif %}
2015-10-08 01:28:31 +08:00
{%- endblock %}