From 7fc0d57d6486e9b91c3968e50bfb5e095b1c6e8f Mon Sep 17 00:00:00 2001 From: Matteo Cancellieri Date: Fri, 1 Nov 2019 15:49:29 +0000 Subject: [PATCH 1/8] Add CORE Recommender to abs page CORE Recommender can be enabled using LABS_CORE_RECOMMENDER_ENABLED configuration setting. If CORE Recommender is enabled a little html snippet is appended to abs page that includes toggle button, CORE Recommender root element and the script that: - handles toggle button clicks and updates CORE Recommender setting - maintains a cookie `arxiv_core_recommender` setting that can be either "enabled" or "disabled" - loads/unloads CORE Recommender service based on the setting Co-authored-by: Matteo Cancellieri Co-authored-by: Viktor Yakubiv --- browse/config.py | 3 + browse/static/js/core-recommender.js | 123 +++++++++++++++++++++++++++ browse/templates/abs/abs.html | 5 ++ 3 files changed, 131 insertions(+) create mode 100644 browse/static/js/core-recommender.js diff --git a/browse/config.py b/browse/config.py index 196f342ca..680bceb48 100644 --- a/browse/config.py +++ b/browse/config.py @@ -325,6 +325,9 @@ LABS_BIBEXPLORER_ENABLED = os.environ.get('LABS_BIBEXPLORER_ENABLED', True) """arXiv Labs bibex enabled/disabled.""" +LABS_CORE_RECOMMENDER_ENABLED = os.environ.get('LABS_CORE_RECOMMENDER_ENABLED', True) +"""CORE Recommender enabled/disabled.""" + # Auth settings AUTH_SESSION_COOKIE_NAME = 'ARXIVNG_SESSION_ID' AUTH_SESSION_COOKIE_DOMAIN = os.environ.get( diff --git a/browse/static/js/core-recommender.js b/browse/static/js/core-recommender.js new file mode 100644 index 000000000..b4be42611 --- /dev/null +++ b/browse/static/js/core-recommender.js @@ -0,0 +1,123 @@ +(function (window, userInput, options) { + if (userInput == null) userInput = {}; + if (options == null) options = {}; + + // Options processing + + var document = window.document; + var baseUrl = 'https://core.ac.uk'; + var cookieName = options.cookieName || "arxiv_core_recommender"; + var scriptId = options.scriptId || "recommender-embed"; + var apiKey = options.apiKey || "24c597"; + + + // Generic cookie manipulations + + function setCookie(name, value, days) { + if (!name && !value) return false; + + if (days) { + var date = new Date(); + date.setTime(date.getTime()+(days * 24 * 60 * 60 * 1000)); + var expires = "; expires=" + date.toGMTString(); + } else { + var expires = ""; + } + + document.cookie = name + "=" + value + expires +"; path=/"; + return true; + } + + function getCookie(name) { + var nameEq = name + "="; + var begin = document.cookie.indexOf(nameEq); + if (begin < 0) return null; + + var end = document.cookie.indexOf(";", begin); + if (end < 0) end = document.cookie.length; + + var value = decodeURIComponent(document.cookie.substring(begin + nameEq.length, end)); + return value; + } + + + // Generic DOM manipulations + + function appendStylesheet(url, id) { + var linkElement = document.createElement('link'); + linkElement.setAttribute('rel', 'stylesheet'); + linkElement.setAttribute('type', 'text/css'); + linkElement.setAttribute('href', url); + if (id != null) linkElement.id = id; + + document.head.appendChild(linkElement); + return linkElement; + } + + function appendScript(url, id) { + var scriptElement = document.createElement('script'); + scriptElement.type = "text/javascript"; + scriptElement.src = url; + if (id != null) scriptElement.id = id; + + document.body.appendChild(scriptElement); + return scriptElement; + } + + + // CORE Recommender + + function getRecommenderStatus() { + const cookieValue = getCookie(cookieName) || "enabled"; + return cookieValue === "enabled"; + } + + function setRecommenderStatus(enabled) { + const value = enabled ? "enabled" : "disabled"; + setCookie(cookieName, value, 365); + } + + function loadRecommender(baseUrl, userInput, options) { + if (options == null) options = {}; + if (userInput == null) userInput = {}; + + appendStylesheet(baseUrl + '/recommender/embed-arxiv-style.css', scriptId); + appendScript(baseUrl + '/recommender/embed.js'); + + localStorage.setItem('idRecommender', apiKey); + localStorage.setItem('userInput', JSON.stringify(userInput)); + if (options.overrideLocale) + localStorage.setItem('overridelocale', "en_GB"); + } + + function unloadRecommender() { + document.getElementById(scriptId).remove(); + document.getElementById("coreRecommenderOutput").innerHTML = ""; + } + + function renderToggleButtonText(status) { + var buttonElement = document.getElementById("core-recommender-toggle"); + const caption = (status ? "Disable" : "Enable") + " CORE Recommendations"; + buttonElement.innerHTML = caption; + } + + function toggleRecommender(forceStatus) { + var nextStatus = forceStatus != null ? forceStatus : !getRecommenderStatus(); + + setRecommenderStatus(nextStatus); + + renderToggleButtonText(nextStatus); + if (nextStatus) + loadRecommender(baseUrl); + else + unloadRecommender(); + } + + function initRecommender() { + var isEnabled = getRecommenderStatus(); + toggleRecommender(isEnabled); + } + + window.toggleCORERecommender = toggleRecommender; + window.addEventListener('load', initRecommender); +}(window)); diff --git a/browse/templates/abs/abs.html b/browse/templates/abs/abs.html index bbca550c3..ffdcd709b 100644 --- a/browse/templates/abs/abs.html +++ b/browse/templates/abs/abs.html @@ -75,6 +75,11 @@

Submission history

From: {{ abs_meta.submitter.name|tex2utf if abs_meta {% endif %} + {% if config['LABS_CORE_RECOMMENDER_ENABLED'] %} + +
+ + {% endif %} {% endblock content %} From dd5ba480c33472d92e43daa6e37a8dafc2ec09b7 Mon Sep 17 00:00:00 2001 From: Viktor Yakubiv Date: Thu, 23 Jul 2020 20:54:36 +0300 Subject: [PATCH 2/8] Clean-up CORE Recommender script (#172) 1. Removes cookie management from the `core-recommender.js` 2. Adds conditional check for the script loading: - if the `document` was loaded already, the `init()` function is executed - if the `document` was not loaded, a new 'load' listener is added --- browse/static/js/core-recommender.js | 68 ++++------------------------ 1 file changed, 10 insertions(+), 58 deletions(-) diff --git a/browse/static/js/core-recommender.js b/browse/static/js/core-recommender.js index b4be42611..70389ffde 100644 --- a/browse/static/js/core-recommender.js +++ b/browse/static/js/core-recommender.js @@ -6,41 +6,10 @@ var document = window.document; var baseUrl = 'https://core.ac.uk'; - var cookieName = options.cookieName || "arxiv_core_recommender"; var scriptId = options.scriptId || "recommender-embed"; var apiKey = options.apiKey || "24c597"; - // Generic cookie manipulations - - function setCookie(name, value, days) { - if (!name && !value) return false; - - if (days) { - var date = new Date(); - date.setTime(date.getTime()+(days * 24 * 60 * 60 * 1000)); - var expires = "; expires=" + date.toGMTString(); - } else { - var expires = ""; - } - - document.cookie = name + "=" + value + expires +"; path=/"; - return true; - } - - function getCookie(name) { - var nameEq = name + "="; - var begin = document.cookie.indexOf(nameEq); - if (begin < 0) return null; - - var end = document.cookie.indexOf(";", begin); - if (end < 0) end = document.cookie.length; - - var value = decodeURIComponent(document.cookie.substring(begin + nameEq.length, end)); - return value; - } - - // Generic DOM manipulations function appendStylesheet(url, id) { @@ -67,16 +36,6 @@ // CORE Recommender - function getRecommenderStatus() { - const cookieValue = getCookie(cookieName) || "enabled"; - return cookieValue === "enabled"; - } - - function setRecommenderStatus(enabled) { - const value = enabled ? "enabled" : "disabled"; - setCookie(cookieName, value, 365); - } - function loadRecommender(baseUrl, userInput, options) { if (options == null) options = {}; if (userInput == null) userInput = {}; @@ -95,29 +54,22 @@ document.getElementById("coreRecommenderOutput").innerHTML = ""; } - function renderToggleButtonText(status) { - var buttonElement = document.getElementById("core-recommender-toggle"); - const caption = (status ? "Disable" : "Enable") + " CORE Recommendations"; - buttonElement.innerHTML = caption; - } - - function toggleRecommender(forceStatus) { - var nextStatus = forceStatus != null ? forceStatus : !getRecommenderStatus(); - - setRecommenderStatus(nextStatus); - - renderToggleButtonText(nextStatus); - if (nextStatus) + function toggleRecommender(isEnabled) { + if (isEnabled) loadRecommender(baseUrl); else unloadRecommender(); } function initRecommender() { - var isEnabled = getRecommenderStatus(); - toggleRecommender(isEnabled); + toggleRecommender(true); } - window.toggleCORERecommender = toggleRecommender; - window.addEventListener('load', initRecommender); + + // Initialization + + if (window.document.readyState == 'loading') + window.addEventListener('load', initRecommender); + else + initRecommender(); }(window)); From 59207f92de1c12211841dbf29d448fda687e3ec0 Mon Sep 17 00:00:00 2001 From: Shamsi Brinn Date: Thu, 23 Jul 2020 14:01:43 -0400 Subject: [PATCH 3/8] trackbacks: emphasis on title (#170) * more emphasis on trackback title, less on metadata * metadata placed in accordion to reduce its emphasis further. A few other css tweaks. * reduced emphasis on "trackback guide" * fixes trackback tests * makes styling on /tb/recent page more consistent with /tb/{paper_id} page * disable padding that creates vertical gap in right sidebar Co-authored-by: Martin Lessmeister --- Pipfile.lock | 265 ++++++++++++++++---------------- browse/static/css/arXiv.css | 65 ++++++-- browse/templates/tb/base.html | 1 - browse/templates/tb/macros.html | 24 ++- browse/templates/tb/recent.html | 2 +- browse/templates/tb/tb.html | 37 ++++- tests/test_browse.py | 6 +- 7 files changed, 245 insertions(+), 155 deletions(-) diff --git a/Pipfile.lock b/Pipfile.lock index 2f3bb8887..81c085732 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "2a97ec36f67169ec6b8c818e2a85c427316579a3d8bdb233e474607800b2ee1e" + "sha256": "fdc7d0cbc02d677bf2efe5597e911e2064b83f406a1278ee236c4b8ab5c38663" }, "pipfile-spec": 6, "requires": { @@ -43,10 +43,10 @@ }, "arxiv-base": { "hashes": [ - "sha256:7aa4c4f0ba223de4ae015ef180de0a1b9ff570c2ea3cec3f81e1d9e4538b050f" + "sha256:c5bb886a82ccbfc89e3eb658a47a0b9ffa5245f827c9f35f293dc93c33f55ace" ], "index": "pypi", - "version": "==0.16.8rc2" + "version": "==0.16.8" }, "async-timeout": { "hashes": [ @@ -77,17 +77,17 @@ }, "boto3": { "hashes": [ - "sha256:185f7b36c16f76e501d8dfc5cd209113426e078e4968dd13cc355c916bc99597", - "sha256:51243ba0e976343ca0b98bb4a15fc3d588526220f6ba45bfed7ea45472b1e033" + "sha256:ae57df1fbad7e29954a160d77cbf650d6562eb0d304c1206afa71d914e771a66", + "sha256:cbe618d61cb8f75cd9495ea36e69bad7c8984eb11f02ad247be4c9a2eb7eb647" ], - "version": "==1.14.9" + "version": "==1.14.17" }, "botocore": { "hashes": [ - "sha256:7dd59bc766d567ca83bc6113aa139d92ba447738ccdfcd40788848553d329a52", - "sha256:cd4bb2d96ff2ec6bf4fbcdb2f241d0fb6ba1e7955b4721cf1d81f13db02768b6" + "sha256:5528c04c360019c24f2706ce82872c9ab767a8c581beffdfdaf006cce7499cac", + "sha256:d65b5574dad8c221344496352245828d9ffecaa0868199eb04ccd2eb2ff09133" ], - "version": "==1.17.9" + "version": "==1.17.17" }, "chardet": { "hashes": [ @@ -168,10 +168,10 @@ }, "idna": { "hashes": [ - "sha256:7588d1c14ae4c77d74036e8c22ff447b26d0fde8f007354fd48a7814db15b7cb", - "sha256:a068a21ceac8a4d63dbfd964670474107f541babbd2250d61922f029858365fa" + "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", + "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" ], - "version": "==2.9" + "version": "==2.10" }, "idna-ssl": { "hashes": [ @@ -182,11 +182,11 @@ }, "importlib-metadata": { "hashes": [ - "sha256:0505dd08068cfec00f53a74a0ad927676d7757da81b7436a6eefe4c7cf75c545", - "sha256:15ec6c0fd909e893e3a08b3a7c76ecb149122fb14b7efe1199ddd4c7c57ea958" + "sha256:90bb658cdbbf6d1735b6341ce708fc7024a3e14e99ffdc5783edea9f9b077f83", + "sha256:dc15b2969b4ce36305c51eebe62d418ac7791e9a157911d58bfb1f9ccd8e2070" ], "markers": "python_version < '3.8'", - "version": "==1.6.1" + "version": "==1.7.0" }, "itsdangerous": { "hashes": [ @@ -320,16 +320,16 @@ }, "py": { "hashes": [ - "sha256:a673fa23d7000440cc885c17dbd34fafcb7d7a6e230b29f6766400de36a33c44", - "sha256:f3b3a4c36512a4c4f024041ab51866f11761cc169670204b235f6b20523d4e6b" + "sha256:366389d1db726cd2fcfc79732e75410e5fe4d31db13692115529d34069a043c2", + "sha256:9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342" ], - "version": "==1.8.2" + "version": "==1.9.0" }, "pycountry": { "hashes": [ - "sha256:3c57aa40adcf293d59bebaffbe60d8c39976fba78d846a018dc0c2ec9c6cb3cb" + "sha256:81084a53d3454344c0292deebc20fcd0a1488c136d4900312cbd465cf552cb42" ], - "version": "==19.8.18" + "version": "==20.7.3" }, "pyjwt": { "hashes": [ @@ -397,37 +397,37 @@ }, "sqlalchemy": { "hashes": [ - "sha256:128bc917ed20d78143a45024455ff0aed7d3b96772eba13d5dbaf9cc57e5c41b", - "sha256:156a27548ba4e1fed944ff9fcdc150633e61d350d673ae7baaf6c25c04ac1f71", - "sha256:27e2efc8f77661c9af2681755974205e7462f1ae126f498f4fe12a8b24761d15", - "sha256:2a12f8be25b9ea3d1d5b165202181f2b7da4b3395289000284e5bb86154ce87c", - "sha256:31c043d5211aa0e0773821fcc318eb5cbe2ec916dfbc4c6eea0c5188971988eb", - "sha256:65eb3b03229f684af0cf0ad3bcc771970c1260a82a791a8d07bffb63d8c95bcc", - "sha256:6cd157ce74a911325e164441ff2d9b4e244659a25b3146310518d83202f15f7a", - "sha256:703c002277f0fbc3c04d0ae4989a174753a7554b2963c584ce2ec0cddcf2bc53", - "sha256:869bbb637de58ab0a912b7f20e9192132f9fbc47fc6b5111cd1e0f6cdf5cf9b0", - "sha256:8a0e0cd21da047ea10267c37caf12add400a92f0620c8bc09e4a6531a765d6d7", - "sha256:8d01e949a5d22e5c4800d59b50617c56125fc187fbeb8fa423e99858546de616", - "sha256:925b4fe5e7c03ed76912b75a9a41dfd682d59c0be43bce88d3b27f7f5ba028fb", - "sha256:9cb1819008f0225a7c066cac8bb0cf90847b2c4a6eb9ebb7431dbd00c56c06c5", - "sha256:a87d496884f40c94c85a647c385f4fd5887941d2609f71043e2b73f2436d9c65", - "sha256:a9030cd30caf848a13a192c5e45367e3c6f363726569a56e75dc1151ee26d859", - "sha256:a9e75e49a0f1583eee0ce93270232b8e7bb4b1edc89cc70b07600d525aef4f43", - "sha256:b50f45d0e82b4562f59f0e0ca511f65e412f2a97d790eea5f60e34e5f1aabc9a", - "sha256:b7878e59ec31f12d54b3797689402ee3b5cfcb5598f2ebf26491732758751908", - "sha256:ce1ddaadee913543ff0154021d31b134551f63428065168e756d90bdc4c686f5", - "sha256:ce2646e4c0807f3461be0653502bb48c6e91a5171d6e450367082c79e12868bf", - "sha256:ce6c3d18b2a8ce364013d47b9cad71db815df31d55918403f8db7d890c9d07ae", - "sha256:e4e2664232005bd306f878b0f167a31f944a07c4de0152c444f8c61bbe3cfb38", - "sha256:e8aa395482728de8bdcca9cc0faf3765ab483e81e01923aaa736b42f0294f570", - "sha256:eb4fcf7105bf071c71068c6eee47499ab8d4b8f5a11fc35147c934f0faa60f23", - "sha256:ed375a79f06cad285166e5be74745df1ed6845c5624aafadec4b7a29c25866ef", - "sha256:f35248f7e0d63b234a109dd72fbfb4b5cb6cb6840b221d0df0ecbf54ab087654", - "sha256:f502ef245c492b391e0e23e94cba030ab91722dcc56963c85bfd7f3441ea2bbe", - "sha256:fe01bac7226499aedf472c62fa3b85b2c619365f3f14dd222ffe4f3aa91e5f98" + "sha256:0942a3a0df3f6131580eddd26d99071b48cfe5aaf3eab2783076fbc5a1c1882e", + "sha256:0ec575db1b54909750332c2e335c2bb11257883914a03bc5a3306a4488ecc772", + "sha256:109581ccc8915001e8037b73c29590e78ce74be49ca0a3630a23831f9e3ed6c7", + "sha256:16593fd748944726540cd20f7e83afec816c2ac96b082e26ae226e8f7e9688cf", + "sha256:427273b08efc16a85aa2b39892817e78e3ed074fcb89b2a51c4979bae7e7ba98", + "sha256:50c4ee32f0e1581828843267d8de35c3298e86ceecd5e9017dc45788be70a864", + "sha256:512a85c3c8c3995cc91af3e90f38f460da5d3cade8dc3a229c8e0879037547c9", + "sha256:57aa843b783179ab72e863512e14bdcba186641daf69e4e3a5761d705dcc35b1", + "sha256:621f58cd921cd71ba6215c42954ffaa8a918eecd8c535d97befa1a8acad986dd", + "sha256:6ac2558631a81b85e7fb7a44e5035347938b0a73f5fdc27a8566777d0792a6a4", + "sha256:716754d0b5490bdcf68e1e4925edc02ac07209883314ad01a137642ddb2056f1", + "sha256:736d41cfebedecc6f159fc4ac0769dc89528a989471dc1d378ba07d29a60ba1c", + "sha256:8619b86cb68b185a778635be5b3e6018623c0761dde4df2f112896424aa27bd8", + "sha256:87fad64529cde4f1914a5b9c383628e1a8f9e3930304c09cf22c2ae118a1280e", + "sha256:89494df7f93b1836cae210c42864b292f9b31eeabca4810193761990dc689cce", + "sha256:8cac7bb373a5f1423e28de3fd5fc8063b9c8ffe8957dc1b1a59cb90453db6da1", + "sha256:8fd452dc3d49b3cc54483e033de6c006c304432e6f84b74d7b2c68afa2569ae5", + "sha256:adad60eea2c4c2a1875eb6305a0b6e61a83163f8e233586a4d6a55221ef984fe", + "sha256:c26f95e7609b821b5f08a72dab929baa0d685406b953efd7c89423a511d5c413", + "sha256:cbe1324ef52ff26ccde2cb84b8593c8bf930069dfc06c1e616f1bfd4e47f48a3", + "sha256:d05c4adae06bd0c7f696ae3ec8d993ed8ffcc4e11a76b1b35a5af8a099bd2284", + "sha256:d98bc827a1293ae767c8f2f18be3bb5151fd37ddcd7da2a5f9581baeeb7a3fa1", + "sha256:da2fb75f64792c1fc64c82313a00c728a7c301efe6a60b7a9fe35b16b4368ce7", + "sha256:e4624d7edb2576cd72bb83636cd71c8ce544d8e272f308bd80885056972ca299", + "sha256:e89e0d9e106f8a9180a4ca92a6adde60c58b1b0299e1b43bd5e0312f535fbf33", + "sha256:f11c2437fb5f812d020932119ba02d9e2bc29a6eca01a055233a8b449e3e1e7d", + "sha256:f57be5673e12763dd400fea568608700a63ce1c6bd5bdbc3cc3a2c5fdb045274", + "sha256:fc728ece3d5c772c196fd338a99798e7efac7a04f9cb6416299a3638ee9a94cd" ], "index": "pypi", - "version": "==1.3.17" + "version": "==1.3.18" }, "typed-ast": { "hashes": [ @@ -604,40 +604,43 @@ }, "coverage": { "hashes": [ - "sha256:00f1d23f4336efc3b311ed0d807feb45098fc86dee1ca13b3d6768cdab187c8a", - "sha256:01333e1bd22c59713ba8a79f088b3955946e293114479bbfc2e37d522be03355", - "sha256:0cb4be7e784dcdc050fc58ef05b71aa8e89b7e6636b99967fadbdba694cf2b65", - "sha256:0e61d9803d5851849c24f78227939c701ced6704f337cad0a91e0972c51c1ee7", - "sha256:1601e480b9b99697a570cea7ef749e88123c04b92d84cedaa01e117436b4a0a9", - "sha256:2742c7515b9eb368718cd091bad1a1b44135cc72468c731302b3d641895b83d1", - "sha256:2d27a3f742c98e5c6b461ee6ef7287400a1956c11421eb574d843d9ec1f772f0", - "sha256:402e1744733df483b93abbf209283898e9f0d67470707e3c7516d84f48524f55", - "sha256:5c542d1e62eece33c306d66fe0a5c4f7f7b3c08fecc46ead86d7916684b36d6c", - "sha256:5f2294dbf7875b991c381e3d5af2bcc3494d836affa52b809c91697449d0eda6", - "sha256:6402bd2fdedabbdb63a316308142597534ea8e1895f4e7d8bf7476c5e8751fef", - "sha256:66460ab1599d3cf894bb6baee8c684788819b71a5dc1e8fa2ecc152e5d752019", - "sha256:782caea581a6e9ff75eccda79287daefd1d2631cc09d642b6ee2d6da21fc0a4e", - "sha256:79a3cfd6346ce6c13145731d39db47b7a7b859c0272f02cdb89a3bdcbae233a0", - "sha256:7a5bdad4edec57b5fb8dae7d3ee58622d626fd3a0be0dfceda162a7035885ecf", - "sha256:8fa0cbc7ecad630e5b0f4f35b0f6ad419246b02bc750de7ac66db92667996d24", - "sha256:a027ef0492ede1e03a8054e3c37b8def89a1e3c471482e9f046906ba4f2aafd2", - "sha256:a3f3654d5734a3ece152636aad89f58afc9213c6520062db3978239db122f03c", - "sha256:a82b92b04a23d3c8a581fc049228bafde988abacba397d57ce95fe95e0338ab4", - "sha256:acf3763ed01af8410fc36afea23707d4ea58ba7e86a8ee915dfb9ceff9ef69d0", - "sha256:adeb4c5b608574a3d647011af36f7586811a2c1197c861aedb548dd2453b41cd", - "sha256:b83835506dfc185a319031cf853fa4bb1b3974b1f913f5bb1a0f3d98bdcded04", - "sha256:bb28a7245de68bf29f6fb199545d072d1036a1917dca17a1e75bbb919e14ee8e", - "sha256:bf9cb9a9fd8891e7efd2d44deb24b86d647394b9705b744ff6f8261e6f29a730", - "sha256:c317eaf5ff46a34305b202e73404f55f7389ef834b8dbf4da09b9b9b37f76dd2", - "sha256:dbe8c6ae7534b5b024296464f387d57c13caa942f6d8e6e0346f27e509f0f768", - "sha256:de807ae933cfb7f0c7d9d981a053772452217df2bf38e7e6267c9cbf9545a796", - "sha256:dead2ddede4c7ba6cb3a721870f5141c97dc7d85a079edb4bd8d88c3ad5b20c7", - "sha256:dec5202bfe6f672d4511086e125db035a52b00f1648d6407cc8e526912c0353a", - "sha256:e1ea316102ea1e1770724db01998d1603ed921c54a86a2efcb03428d5417e489", - "sha256:f90bfc4ad18450c80b024036eaf91e4a246ae287701aaa88eaebebf150868052" + "sha256:0fc4e0d91350d6f43ef6a61f64a48e917637e1dcfcba4b4b7d543c628ef82c2d", + "sha256:10f2a618a6e75adf64329f828a6a5b40244c1c50f5ef4ce4109e904e69c71bd2", + "sha256:12eaccd86d9a373aea59869bc9cfa0ab6ba8b1477752110cb4c10d165474f703", + "sha256:1874bdc943654ba46d28f179c1846f5710eda3aeb265ff029e0ac2b52daae404", + "sha256:1dcebae667b73fd4aa69237e6afb39abc2f27520f2358590c1b13dd90e32abe7", + "sha256:1e58fca3d9ec1a423f1b7f2aa34af4f733cbfa9020c8fe39ca451b6071237405", + "sha256:214eb2110217f2636a9329bc766507ab71a3a06a8ea30cdeebb47c24dce5972d", + "sha256:25fe74b5b2f1b4abb11e103bb7984daca8f8292683957d0738cd692f6a7cc64c", + "sha256:32ecee61a43be509b91a526819717d5e5650e009a8d5eda8631a59c721d5f3b6", + "sha256:3740b796015b889e46c260ff18b84683fa2e30f0f75a171fb10d2bf9fb91fc70", + "sha256:3b2c34690f613525672697910894b60d15800ac7e779fbd0fccf532486c1ba40", + "sha256:41d88736c42f4a22c494c32cc48a05828236e37c991bd9760f8923415e3169e4", + "sha256:42fa45a29f1059eda4d3c7b509589cc0343cd6bbf083d6118216830cd1a51613", + "sha256:4bb385a747e6ae8a65290b3df60d6c8a692a5599dc66c9fa3520e667886f2e10", + "sha256:509294f3e76d3f26b35083973fbc952e01e1727656d979b11182f273f08aa80b", + "sha256:5c74c5b6045969b07c9fb36b665c9cac84d6c174a809fc1b21bdc06c7836d9a0", + "sha256:60a3d36297b65c7f78329b80120f72947140f45b5c7a017ea730f9112b40f2ec", + "sha256:6f91b4492c5cde83bfe462f5b2b997cdf96a138f7c58b1140f05de5751623cf1", + "sha256:7403675df5e27745571aba1c957c7da2dacb537c21e14007ec3a417bf31f7f3d", + "sha256:87bdc8135b8ee739840eee19b184804e5d57f518578ffc797f5afa2c3c297913", + "sha256:8a3decd12e7934d0254939e2bf434bf04a5890c5bf91a982685021786a08087e", + "sha256:9702e2cb1c6dec01fb8e1a64c015817c0800a6eca287552c47a5ee0ebddccf62", + "sha256:a4d511012beb967a39580ba7d2549edf1e6865a33e5fe51e4dce550522b3ac0e", + "sha256:bbb387811f7a18bdc61a2ea3d102be0c7e239b0db9c83be7bfa50f095db5b92a", + "sha256:bfcc811883699ed49afc58b1ed9f80428a18eb9166422bce3c31a53dba00fd1d", + "sha256:c32aa13cc3fe86b0f744dfe35a7f879ee33ac0a560684fef0f3e1580352b818f", + "sha256:ca63dae130a2e788f2b249200f01d7fa240f24da0596501d387a50e57aa7075e", + "sha256:d54d7ea74cc00482a2410d63bf10aa34ebe1c49ac50779652106c867f9986d6b", + "sha256:d67599521dff98ec8c34cd9652cbcfe16ed076a2209625fca9dc7419b6370e5c", + "sha256:d82db1b9a92cb5c67661ca6616bdca6ff931deceebb98eecbd328812dab52032", + "sha256:d9ad0a988ae20face62520785ec3595a5e64f35a21762a57d115dae0b8fb894a", + "sha256:ebf2431b2d457ae5217f3a1179533c456f3272ded16f8ed0b32961a6d90e38ee", + "sha256:ed9a21502e9223f563e071759f769c3d6a2e1ba5328c31e86830368e8d78bc9c", + "sha256:f50632ef2d749f541ca8e6c07c9928a37f87505ce3a9f20c8446ad310f1aa87b" ], "index": "pypi", - "version": "==5.1" + "version": "==5.2" }, "coveralls": { "hashes": [ @@ -678,18 +681,18 @@ }, "hypothesis": { "hashes": [ - "sha256:29e69777d460494ac987b0f60a9ace5a3142c7ba731e27f014caf5a0b93409da", - "sha256:57935a5a1272227b945de3b7d0cefdbbfec1c3d479d22e5f7361ac0d1717dc14" + "sha256:ba7c92006716aaee4684f7876c116adedcfb88b19fcb55d21c47b28f03f933bf", + "sha256:dd21b1be951fefc9022047824c262f4e88d95dd24141b837b92e235c63baabb7" ], "index": "pypi", - "version": "==5.18.0" + "version": "==5.19.0" }, "idna": { "hashes": [ - "sha256:7588d1c14ae4c77d74036e8c22ff447b26d0fde8f007354fd48a7814db15b7cb", - "sha256:a068a21ceac8a4d63dbfd964670474107f541babbd2250d61922f029858365fa" + "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", + "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" ], - "version": "==2.9" + "version": "==2.10" }, "imagesize": { "hashes": [ @@ -700,11 +703,11 @@ }, "importlib-metadata": { "hashes": [ - "sha256:0505dd08068cfec00f53a74a0ad927676d7757da81b7436a6eefe4c7cf75c545", - "sha256:15ec6c0fd909e893e3a08b3a7c76ecb149122fb14b7efe1199ddd4c7c57ea958" + "sha256:90bb658cdbbf6d1735b6341ce708fc7024a3e14e99ffdc5783edea9f9b077f83", + "sha256:dc15b2969b4ce36305c51eebe62d418ac7791e9a157911d58bfb1f9ccd8e2070" ], "markers": "python_version < '3.8'", - "version": "==1.6.1" + "version": "==1.7.0" }, "inflect": { "hashes": [ @@ -715,10 +718,10 @@ }, "isort": { "hashes": [ - "sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1", - "sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd" + "sha256:6ae9cf5414e416954e3421f861cbbfc099b3ace63cb270cc76c6670efd960a0a", + "sha256:78661ad751751cb3c181d37302e175a0c644b3714877c073df058c596281d7fd" ], - "version": "==4.3.21" + "version": "==5.0.4" }, "itsdangerous": { "hashes": [ @@ -827,10 +830,10 @@ }, "py": { "hashes": [ - "sha256:a673fa23d7000440cc885c17dbd34fafcb7d7a6e230b29f6766400de36a33c44", - "sha256:f3b3a4c36512a4c4f024041ab51866f11761cc169670204b235f6b20523d4e6b" + "sha256:366389d1db726cd2fcfc79732e75410e5fe4d31db13692115529d34069a043c2", + "sha256:9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342" ], - "version": "==1.8.2" + "version": "==1.9.0" }, "pycodestyle": { "hashes": [ @@ -888,10 +891,10 @@ }, "pyparsing": { "hashes": [ - "sha256:67199f0c41a9c702154efb0e7a8cc08accf830eb003b4d9fa42c4059002e2492", - "sha256:700d17888d441604b0bd51535908dcb297561b040819cccde647a92439db5a2a" + "sha256:1060635ca5ac864c2b7bc7b05a448df4e32d7d8c65e33cbe1514810d339672a2", + "sha256:56a551039101858c9e189ac9e66e330a03fb7079e97ba6b50193643905f450ce" ], - "version": "==3.0.0a1" + "version": "==3.0.0a2" }, "pytest": { "hashes": [ @@ -968,11 +971,11 @@ }, "sphinx": { "hashes": [ - "sha256:74fbead182a611ce1444f50218a1c5fc70b6cc547f64948f5182fb30a2a20258", - "sha256:97c9e3bcce2f61d9f5edf131299ee9d1219630598d9f9a8791459a4d9e815be5" + "sha256:97dbf2e31fc5684bb805104b8ad34434ed70e6c588f6896991b2fdfd2bef8c00", + "sha256:b9daeb9b39aa1ffefc2809b43604109825300300b987a24f45976c001ba1a8fd" ], "index": "pypi", - "version": "==3.1.1" + "version": "==3.1.2" }, "sphinx-autodoc-typehints": { "hashes": [ @@ -1034,37 +1037,37 @@ }, "sqlalchemy": { "hashes": [ - "sha256:128bc917ed20d78143a45024455ff0aed7d3b96772eba13d5dbaf9cc57e5c41b", - "sha256:156a27548ba4e1fed944ff9fcdc150633e61d350d673ae7baaf6c25c04ac1f71", - "sha256:27e2efc8f77661c9af2681755974205e7462f1ae126f498f4fe12a8b24761d15", - "sha256:2a12f8be25b9ea3d1d5b165202181f2b7da4b3395289000284e5bb86154ce87c", - "sha256:31c043d5211aa0e0773821fcc318eb5cbe2ec916dfbc4c6eea0c5188971988eb", - "sha256:65eb3b03229f684af0cf0ad3bcc771970c1260a82a791a8d07bffb63d8c95bcc", - "sha256:6cd157ce74a911325e164441ff2d9b4e244659a25b3146310518d83202f15f7a", - "sha256:703c002277f0fbc3c04d0ae4989a174753a7554b2963c584ce2ec0cddcf2bc53", - "sha256:869bbb637de58ab0a912b7f20e9192132f9fbc47fc6b5111cd1e0f6cdf5cf9b0", - "sha256:8a0e0cd21da047ea10267c37caf12add400a92f0620c8bc09e4a6531a765d6d7", - "sha256:8d01e949a5d22e5c4800d59b50617c56125fc187fbeb8fa423e99858546de616", - "sha256:925b4fe5e7c03ed76912b75a9a41dfd682d59c0be43bce88d3b27f7f5ba028fb", - "sha256:9cb1819008f0225a7c066cac8bb0cf90847b2c4a6eb9ebb7431dbd00c56c06c5", - "sha256:a87d496884f40c94c85a647c385f4fd5887941d2609f71043e2b73f2436d9c65", - "sha256:a9030cd30caf848a13a192c5e45367e3c6f363726569a56e75dc1151ee26d859", - "sha256:a9e75e49a0f1583eee0ce93270232b8e7bb4b1edc89cc70b07600d525aef4f43", - "sha256:b50f45d0e82b4562f59f0e0ca511f65e412f2a97d790eea5f60e34e5f1aabc9a", - "sha256:b7878e59ec31f12d54b3797689402ee3b5cfcb5598f2ebf26491732758751908", - "sha256:ce1ddaadee913543ff0154021d31b134551f63428065168e756d90bdc4c686f5", - "sha256:ce2646e4c0807f3461be0653502bb48c6e91a5171d6e450367082c79e12868bf", - "sha256:ce6c3d18b2a8ce364013d47b9cad71db815df31d55918403f8db7d890c9d07ae", - "sha256:e4e2664232005bd306f878b0f167a31f944a07c4de0152c444f8c61bbe3cfb38", - "sha256:e8aa395482728de8bdcca9cc0faf3765ab483e81e01923aaa736b42f0294f570", - "sha256:eb4fcf7105bf071c71068c6eee47499ab8d4b8f5a11fc35147c934f0faa60f23", - "sha256:ed375a79f06cad285166e5be74745df1ed6845c5624aafadec4b7a29c25866ef", - "sha256:f35248f7e0d63b234a109dd72fbfb4b5cb6cb6840b221d0df0ecbf54ab087654", - "sha256:f502ef245c492b391e0e23e94cba030ab91722dcc56963c85bfd7f3441ea2bbe", - "sha256:fe01bac7226499aedf472c62fa3b85b2c619365f3f14dd222ffe4f3aa91e5f98" + "sha256:0942a3a0df3f6131580eddd26d99071b48cfe5aaf3eab2783076fbc5a1c1882e", + "sha256:0ec575db1b54909750332c2e335c2bb11257883914a03bc5a3306a4488ecc772", + "sha256:109581ccc8915001e8037b73c29590e78ce74be49ca0a3630a23831f9e3ed6c7", + "sha256:16593fd748944726540cd20f7e83afec816c2ac96b082e26ae226e8f7e9688cf", + "sha256:427273b08efc16a85aa2b39892817e78e3ed074fcb89b2a51c4979bae7e7ba98", + "sha256:50c4ee32f0e1581828843267d8de35c3298e86ceecd5e9017dc45788be70a864", + "sha256:512a85c3c8c3995cc91af3e90f38f460da5d3cade8dc3a229c8e0879037547c9", + "sha256:57aa843b783179ab72e863512e14bdcba186641daf69e4e3a5761d705dcc35b1", + "sha256:621f58cd921cd71ba6215c42954ffaa8a918eecd8c535d97befa1a8acad986dd", + "sha256:6ac2558631a81b85e7fb7a44e5035347938b0a73f5fdc27a8566777d0792a6a4", + "sha256:716754d0b5490bdcf68e1e4925edc02ac07209883314ad01a137642ddb2056f1", + "sha256:736d41cfebedecc6f159fc4ac0769dc89528a989471dc1d378ba07d29a60ba1c", + "sha256:8619b86cb68b185a778635be5b3e6018623c0761dde4df2f112896424aa27bd8", + "sha256:87fad64529cde4f1914a5b9c383628e1a8f9e3930304c09cf22c2ae118a1280e", + "sha256:89494df7f93b1836cae210c42864b292f9b31eeabca4810193761990dc689cce", + "sha256:8cac7bb373a5f1423e28de3fd5fc8063b9c8ffe8957dc1b1a59cb90453db6da1", + "sha256:8fd452dc3d49b3cc54483e033de6c006c304432e6f84b74d7b2c68afa2569ae5", + "sha256:adad60eea2c4c2a1875eb6305a0b6e61a83163f8e233586a4d6a55221ef984fe", + "sha256:c26f95e7609b821b5f08a72dab929baa0d685406b953efd7c89423a511d5c413", + "sha256:cbe1324ef52ff26ccde2cb84b8593c8bf930069dfc06c1e616f1bfd4e47f48a3", + "sha256:d05c4adae06bd0c7f696ae3ec8d993ed8ffcc4e11a76b1b35a5af8a099bd2284", + "sha256:d98bc827a1293ae767c8f2f18be3bb5151fd37ddcd7da2a5f9581baeeb7a3fa1", + "sha256:da2fb75f64792c1fc64c82313a00c728a7c301efe6a60b7a9fe35b16b4368ce7", + "sha256:e4624d7edb2576cd72bb83636cd71c8ce544d8e272f308bd80885056972ca299", + "sha256:e89e0d9e106f8a9180a4ca92a6adde60c58b1b0299e1b43bd5e0312f535fbf33", + "sha256:f11c2437fb5f812d020932119ba02d9e2bc29a6eca01a055233a8b449e3e1e7d", + "sha256:f57be5673e12763dd400fea568608700a63ce1c6bd5bdbc3cc3a2c5fdb045274", + "sha256:fc728ece3d5c772c196fd338a99798e7efac7a04f9cb6416299a3638ee9a94cd" ], "index": "pypi", - "version": "==1.3.17" + "version": "==1.3.18" }, "typed-ast": { "hashes": [ diff --git a/browse/static/css/arXiv.css b/browse/static/css/arXiv.css index 11eb5132f..923109004 100644 --- a/browse/static/css/arXiv.css +++ b/browse/static/css/arXiv.css @@ -1,6 +1,6 @@ /**************************************** * arXiv.org Cascading Style Sheet - * $Date: 2020/06/09 $ + * $Date: 2020/07/22 $ *****************************************/ /**************************************** * General rules @@ -1455,7 +1455,7 @@ div#long-dc-list { /* Style to put a small (what is this?) link after a header */ .what-is-this { - margin: 0.5em 0 0 0; + /* margin: 0.5em 0 0 0; */ font-size: xx-small; padding-bottom: 0.3em; } @@ -2164,23 +2164,66 @@ body#front.with-cu-identity #header #search { .form-trackbacks .button { background-color: #d3e1e6; } + .trackback-styles { border-top: 1px solid #eae9e7 !important; padding: 1em !important; } -.trackback-styles blockquote { - background-color: #f7f5f3; - margin: 1em 0; - padding: 2em 1em; -} -.trackback-styles h2 { +.trackback-styles h2.trackback-heading { margin-bottom: 1em; + font-size: 1.5em; } -.trackback-styles h2, .trackback-styles p { +.trackback-styles h2.trackback-heading, .trackback-styles p { margin-left:0 !important; padding-left:0 !important; border: 0 !important; } +.trackback-styles h3.trackback-title { + font-size: 1.25em; + text-transform: none; + margin-bottom: 0; +} +.trackback-styles .trackback-source { + font-size: .85em; +} +.trackback-styles .trackback-source small { + font-style: italic; + font-size: .9em; +} +.trackback-styles .trackback-source a, .trackback-styles .trackback-source a:visited { + text-decoration: underline; + color: #6c6c6c; +} +.trackback-styles .trackback-source a:hover, .trackback-styles .trackback-source a:active { + text-decoration: underline; + color: #000000; +} +/** trackback metadata block **/ +.trackback-styles blockquote { + background-color: #f7f5f3; + margin: 1em 0; + padding: 1.25em 1em 1em 1em; +} +.trackback-styles #abs h1.title { + font-size: 1.1em !important; + margin-bottom: 5px; +} +.trackback-styles .authors { + line-height: 18px !important; + margin-top: 0 !important; +} +.trackback-styles .authors a { + font-size: .85em; +} +.trackback-styles .accordion-head { + font-weight: normal; + font-size: .85em; +} +#metadata_list.trackback-styles { + padding-top:0 !important; + padding-bottom:0 !important; +} + /*** styles for bold-divided-list ***/ .bold-divided-list { margin: 1em .5em; @@ -2250,6 +2293,10 @@ body#front.with-cu-identity #header #search { .guide a { color: #046BAF; } + .guide h2 { + font-size: 1.1em; + color: #4c4c4c; + } .form-trackbacks { padding: 1em 0 2em 0; text-align: right; diff --git a/browse/templates/tb/base.html b/browse/templates/tb/base.html index a2bad1415..88fc4c62a 100644 --- a/browse/templates/tb/base.html +++ b/browse/templates/tb/base.html @@ -12,7 +12,6 @@ {%- block content %}
-

About trackbacks

By sending a trackback, you can notify arXiv.org that you have created a web page that references a paper. Popular blogging software supports trackback: you can send us a trackback about this diff --git a/browse/templates/tb/macros.html b/browse/templates/tb/macros.html index 4b93e4531..6716568db 100644 --- a/browse/templates/tb/macros.html +++ b/browse/templates/tb/macros.html @@ -1,7 +1,21 @@ {%- macro generate_trackback_link(trackback, include_posted_date=True) -%} - - {{- trackback.title|entity_to_utf|truncate(150) }} [ - {%- if trackback.blog_name %}{{ trackback.blog_name|trim|entity_to_utf|truncate(50) -}} @ {% endif -%} - {%- if trackback.has_valid_url %}{{ trackback.display_url|truncate(30,False) }}{% else %}INVALID-URL{% endif -%}] - {%- if include_posted_date %} [trackback posted {{ trackback.posted_datetime.strftime('%a, %-d %b %Y %H:%M:%S %Z') }}]{% endif %} +

+ + {{- trackback.title|entity_to_utf|truncate(150) }} +

+

+ [ + {%- if trackback.blog_name %} + {{ trackback.blog_name|trim|entity_to_utf|truncate(50) -}} @ + {% endif -%} + {%- if trackback.has_valid_url %} + {{ trackback.display_url|truncate(30,False) }} + {% else %} + INVALID-URL + {% endif -%} + ] + {%- if include_posted_date %} + trackback posted {{ trackback.posted_datetime.strftime('%a, %-d %b %Y %H:%M:%S %Z') }} + {% endif %} +

{%- endmacro -%} diff --git a/browse/templates/tb/recent.html b/browse/templates/tb/recent.html index 574731704..0e94be046 100644 --- a/browse/templates/tb/recent.html +++ b/browse/templates/tb/recent.html @@ -20,7 +20,7 @@

Trackback guide

{% if recent_trackback_pings -%} -
+
- {%- for group_key, group_details in groups.items() if not group_details.is_test %} - - {%- endfor %} - - - - -
+
+
+

arXiv is a free distribution service and an open-access archive for {% if document_count -%}{{ "{:,}".format(document_count) }}{%- endif %} + scholarly articles in the fields of physics, mathematics, computer science, quantitative biology, quantitative finance, statistics, electrical engineering and systems science, and economics. + Materials on this site are not peer-reviewed by arXiv. +

- -

-{%- include "home/news.html" -%} -See cumulative "What's New" pages. -Read robots beware before attempting any automated download -

+ document.addEventListener('DOMContentLoaded',function() { + document.getElementById('adv-search-btn').onclick=doAdvSearchBtn; + },false); + +

News

+ See cumulative "What's New" pages. + Read robots beware before attempting any automated download +
+ + {%- include "home/news.html" -%} +
+ {#- TODO: define display order in taxonomy? -#} {{- group_section(('grp_physics','grp_math','grp_cs','grp_q-bio','grp_q-fin','grp_stat','grp_eess','grp_econ')) }} diff --git a/browse/templates/home/news.html b/browse/templates/home/news.html index 167b127bb..ced9470c3 100644 --- a/browse/templates/home/news.html +++ b/browse/templates/home/news.html @@ -1,28 +1,21 @@ {#- News blurbs appear at the top of the home page. Generally there should be no more than four items. -#} {%- set rd_int = request_datetime.strftime("%Y%m%d%H%M")|int -%} - {%- if rd_int >= 202003300900 -%} -
-
- COVID-19 Quick Links -

See COVID-19 SARS-CoV-2 preprints from

- -

30 Mar 2020: arXiv announces new COVID-19 quick search
- 12 Mar 2020: arXiv responds to COVID-19 uncertainties

-

Important: e-prints posted on arXiv are not peer-reviewed by arXiv; they should not be relied upon without context to guide clinical practice or health-related behavior and should not be reported in news media as established information without consulting multiple experts in the field.

-
+
+ COVID-19 Quick Links +

See COVID-19 SARS-CoV-2 preprints from

+ +

Important: e-prints posted on arXiv are not peer-reviewed by arXiv; they should not be relied upon without context to guide clinical practice or health-related behavior and should not be reported in news media as established information without consulting multiple experts in the field.

{% else %} 16 Mar 2020: arXiv announces its first executive director
12 Mar 2020: arXiv responds to COVID-19 uncertainties
{%- endif -%} -
- -

News

+ {%- if rd_int >= 2019092300 and rd_int <= 2019092700 -%} 23 Sep 2019: Our giving campaign is this week. Support arXiv with a donation!
{%- endif -%} From e71bf48fedbcf92f9c2293314cb34a7b57288b13 Mon Sep 17 00:00:00 2001 From: Shamsi Beers Brinn Date: Mon, 27 Jul 2020 08:30:45 -0400 Subject: [PATCH 6/8] adjusts COVID block red label position up --- browse/static/css/arXiv.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browse/static/css/arXiv.css b/browse/static/css/arXiv.css index 850e4a663..160a257c6 100644 --- a/browse/static/css/arXiv.css +++ b/browse/static/css/arXiv.css @@ -557,7 +557,7 @@ footer .sorry-app-links .a11y-main-link { background-color: #b31a1a; width: 160px; text-align: center; - margin-top: -1.5em; + margin-top: -1.9em; color: #ffffff; padding: .25em 0; font-size: 12px; From 2848767f3bfc62e46c2ff9962ead14a8b5bec440 Mon Sep 17 00:00:00 2001 From: Martin Lessmeister Date: Mon, 27 Jul 2020 08:37:38 -0400 Subject: [PATCH 7/8] update app version to 0.3.2.5 --- browse/config.py | 2 +- browse/templates/feedback_collector.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/browse/config.py b/browse/config.py index 9edf37788..303eb1af5 100644 --- a/browse/config.py +++ b/browse/config.py @@ -8,7 +8,7 @@ import dateutil.parser from datetime import datetime, timedelta -APP_VERSION = "0.3.2" +APP_VERSION = "0.3.2.5" """The application version """ ON = "yes" diff --git a/browse/templates/feedback_collector.html b/browse/templates/feedback_collector.html index 879255437..1884ae85c 100644 --- a/browse/templates/feedback_collector.html +++ b/browse/templates/feedback_collector.html @@ -1,2 +1,2 @@ -Browse v0.3.2 released 2020-06-25 +Browse v0.3.2.5 released 2020-07-27    From 59707332ceb3ca1630b895e7002b4970ac616255 Mon Sep 17 00:00:00 2001 From: Martin Lessmeister Date: Mon, 27 Jul 2020 08:51:05 -0400 Subject: [PATCH 8/8] update css date --- browse/static/css/arXiv.css | 2 +- browse/templates/base.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/browse/static/css/arXiv.css b/browse/static/css/arXiv.css index 160a257c6..4319837e1 100644 --- a/browse/static/css/arXiv.css +++ b/browse/static/css/arXiv.css @@ -1,6 +1,6 @@ /**************************************** * arXiv.org Cascading Style Sheet - * $Date: 2020/07/22 $ + * $Date: 2020/07/27 $ *****************************************/ /**************************************** * General rules diff --git a/browse/templates/base.html b/browse/templates/base.html index fc78501ed..99054f676 100644 --- a/browse/templates/base.html +++ b/browse/templates/base.html @@ -9,7 +9,7 @@ {% block title %}{% endblock %} - + @@ -44,7 +44,7 @@
- {#- if the request date is between 2020-07-21 00:00 and 2020-07-28 00:00, include the following div -#} + {#- e.g. if the request date is between 2020-07-21 00:00 and 2020-08-02 00:00, include the following div -#} {%- if rd_int > 202007210000 and rd_int < 202008020000 -%}
arXiv smileybones icon