Skip to content

Commit

Permalink
digitized_by_pecha_page_added
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg committed Feb 24, 2025
1 parent cc9fc44 commit 47fa572
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 53 deletions.
2 changes: 1 addition & 1 deletion reader/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4264,7 +4264,7 @@ def digitized_by_sefaria(request):
Metrics page. Shows graphs of core metrics.
"""
texts = VersionSet({"digitizedBySefaria": True}, sort=[["title", 1]])
return render_template(request, 'static/digitized-by-sefaria.html', None, {
return render_template(request, 'static/digitized-by-pecha.html', None, {
"texts": texts,
})

Expand Down
2 changes: 1 addition & 1 deletion sites/sefaria/site_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"TORAH_SPECIFIC": True,
"SITE_NAME": {
"en": "Pecha",
"he": "དཔེ་ཆ།"
"he": "Pecha",
},
"LIBRARY_NAME": {
"en": "The Pecha Library",
Expand Down
2 changes: 1 addition & 1 deletion sites/sefaria/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
url(r'^enable_new_editor/?$', reader_views.enable_new_editor),
url(r'^disable_new_editor/?$', reader_views.disable_new_editor),
url(r'^metrics/?$', reader_views.metrics),
url(r'^digitized-by-sefaria/?$', reader_views.digitized_by_sefaria),
url(r'^digitized-by-pecha/?$', reader_views.digitized_by_sefaria),
url(r'^apple-app-site-association/?$', reader_views.apple_app_site_association),
url(r'^\.well-known/apple-app-site-association/?$', reader_views.apple_app_site_association),
url(r'^\.well-known/assetlinks.json/?$', reader_views.android_asset_links_json),
Expand Down
2 changes: 1 addition & 1 deletion static/js/VersionBlock/VersionInformation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function VersionInformation({currentRef, version}) {
<span className="versionDetailsLabel">
{`${Sefaria._("text.version.information.digitization")}: `}
</span>
<a className="versionDetailsLink" href="/digitized-by-sefaria" target="_blank">
<a className="versionDetailsLink" href="/digitized-by-pecha" target="_blank">
{Sefaria._("Pecha")}
</a>
</div>
Expand Down
45 changes: 45 additions & 0 deletions templates/static/digitized-by-pecha.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% extends "base.html" %}
{% load i18n sefaria_tags %}

{% block title %}Texts Digitized by Pecha{% endblock %}

{% block description %}{% endblock %}

{% block content %}

<div id="digitizedBySefaria" class="container doc static">
<div class="inner">

<h1>
<span class="int-en">Texts Digitized by Pecha</span>
<span class="int-he">དཔེ་ཆ་དྲ་བས་ཨང་བསྒྱུར་བྱས་པ།</span>
</h1>

<p>
<span class="int-en">Description coming soon ...</span>
<span class="int-he">Description coming soon ...</span>
</p>


<ul id="texts">
{% for text in texts %}
<li>
{% if request.interfaceLang == "hebrew" %}

<div>{{ text.title|he_ref_link }}</div>
<div class='sub'>{{ text.heVersionTitle|default:text.versionTitle }} ({{ text.language|lang_code }})</div>

{% else %}

<div>{{ text.title|ref_link }}</div>
<div class='sub'>{{ text.versionTitle }} ({{ text.language|lang_code }})</div>

{% endif %}
</li>
{% endfor %}
</ul>

</div>
</div>

{% endblock %}
49 changes: 0 additions & 49 deletions templates/static/digitized-by-sefaria.html

This file was deleted.

0 comments on commit 47fa572

Please sign in to comment.