Update About dialog
- Replace Developers section with text that links to RRCHNM, the credits page, and Get Involved. - Remove dedicated zotero.org link - Only show link underlines on hover
This commit is contained in:
parent
73ac74332c
commit
a7e2e73e51
3 changed files with 59 additions and 31 deletions
|
@ -17,9 +17,6 @@
|
||||||
|
|
||||||
<vbox id="aboutcontent">
|
<vbox id="aboutcontent">
|
||||||
<label id="name" value="Zotero"/>
|
<label id="name" value="Zotero"/>
|
||||||
<hbox>
|
|
||||||
<label class="zotero-text-link" href="https://www.zotero.org" value="https://www.zotero.org"/>
|
|
||||||
</hbox>
|
|
||||||
<hbox>
|
<hbox>
|
||||||
<label id="version"/>
|
<label id="version"/>
|
||||||
<label class="zotero-text-link" href="https://www.zotero.org/support/changelog" value="&zotero.whatsNew;"/>
|
<label class="zotero-text-link" href="https://www.zotero.org/support/changelog" value="&zotero.whatsNew;"/>
|
||||||
|
@ -29,29 +26,44 @@
|
||||||
</script>
|
</script>
|
||||||
<hbox>
|
<hbox>
|
||||||
<vbox id="column1">
|
<vbox id="column1">
|
||||||
<label class="subhead" value="&zotero.createdby;"/>
|
<div id="about-text" xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<vbox class="subcontent">
|
<p id="created-by"></p>
|
||||||
<label class="zotero-text-link" href="https://rrchnm.org/" value="Roy Rosenzweig Center for History and New Media"/>
|
<p id="get-involved"></p>
|
||||||
<label value="George Mason University"/>
|
<script><![CDATA[
|
||||||
<label value="Fairfax, VA, USA"/>
|
// Replace [links] in localized strings with spans with onclick handlers
|
||||||
</vbox>
|
//
|
||||||
<label class="subhead" value="&zotero.director;"/>
|
// TODO: Use helper function in common with intro text in itemTreeView.js
|
||||||
<vbox class="subcontent">
|
document.getElementById('created-by').innerHTML =
|
||||||
<label value="Sean Takats"/>
|
Zotero.Utilities.htmlSpecialChars(Zotero.getString('about.createdBy'))
|
||||||
</vbox>
|
.replace(
|
||||||
<label class="subhead" value="&zotero.developers;"/>
|
/\[([^\]]+)](.+)\[([^\]]+)]/,
|
||||||
<vbox class="subcontent">
|
`<span data-href="https://rrchnm.org/">$1</span>`
|
||||||
<label value="Dan Stillman"/>
|
+ '$2'
|
||||||
<label value="Simon Kornblith"/>
|
+ `<span data-href="https://www.zotero.org/support/credits_and_acknowledgments">$3</span>`
|
||||||
<label value="Faolan Cheslack-Postava"/>
|
);
|
||||||
</vbox>
|
|
||||||
|
document.getElementById('get-involved').innerHTML =
|
||||||
|
Zotero.Utilities.htmlSpecialChars(Zotero.getString('about.getInvolved'))
|
||||||
|
.replace(
|
||||||
|
/\[([^\]]+)]/,
|
||||||
|
`<span data-href="https://www.zotero.org/getinvolved/">$1</span>`
|
||||||
|
);
|
||||||
|
|
||||||
|
// Activate text links
|
||||||
|
for (let span of document.getElementById('about-text').getElementsByTagName('span')) {
|
||||||
|
span.className = 'text-link';
|
||||||
|
span.onclick = function () {
|
||||||
|
window.opener.ZoteroPane.loadURI(this.getAttribute('data-href'));
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]]></script>
|
||||||
|
</div>
|
||||||
<label class="subhead" value="&zotero.thanks;"/>
|
<label class="subhead" value="&zotero.thanks;"/>
|
||||||
<vbox class="subcontent">
|
<vbox class="subcontent">
|
||||||
<label class="zotero-text-link" href="http://www.mellon.org/" value="Andrew W. Mellon Foundation"/>
|
<label class="zotero-text-link" href="http://www.mellon.org/" value="Andrew W. Mellon Foundation"/>
|
||||||
<label class="zotero-text-link" href="http://www.imls.gov/" value="Institute of Museum and Library Services"/>
|
<label class="zotero-text-link" href="http://www.imls.gov/" value="Institute of Museum and Library Services"/>
|
||||||
<label class="zotero-text-link" href="http://www.sloan.org/" value="Alfred P. Sloan Foundation"/>
|
<label class="zotero-text-link" href="http://www.sloan.org/" value="Alfred P. Sloan Foundation"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
<label class="zotero-text-link" href="https://www.zotero.org/support/credits_and_acknowledgments" value="&zotero.moreCreditsAndAcknowledgements;"/>
|
|
||||||
</vbox>
|
</vbox>
|
||||||
<vbox id="column2">
|
<vbox id="column2">
|
||||||
<label class="subhead" value="&zotero.citationProcessing;"/>
|
<label class="subhead" value="&zotero.citationProcessing;"/>
|
||||||
|
|
|
@ -67,6 +67,9 @@ general.operationInProgress = A Zotero operation is currently in progress.
|
||||||
general.operationInProgress.waitUntilFinished = Please wait until it has finished.
|
general.operationInProgress.waitUntilFinished = Please wait until it has finished.
|
||||||
general.operationInProgress.waitUntilFinishedAndTryAgain = Please wait until it has finished and try again.
|
general.operationInProgress.waitUntilFinishedAndTryAgain = Please wait until it has finished and try again.
|
||||||
|
|
||||||
|
about.createdBy = Zotero is a project of the [Roy Rosenzweig Center for History and New Media] and is developed by a [global community].
|
||||||
|
about.getInvolved = Want to help? [Get involved] today!
|
||||||
|
|
||||||
punctuation.openingQMark = "
|
punctuation.openingQMark = "
|
||||||
punctuation.closingQMark = "
|
punctuation.closingQMark = "
|
||||||
punctuation.colon = :
|
punctuation.colon = :
|
||||||
|
|
|
@ -11,6 +11,15 @@ dialog
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#column1 {
|
||||||
|
width: 33em;
|
||||||
|
padding-right: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#column2 {
|
||||||
|
margin-right: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
#name
|
#name
|
||||||
{
|
{
|
||||||
font-size: large;
|
font-size: large;
|
||||||
|
@ -38,21 +47,25 @@ dialog
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zotero-translators-list {
|
#about-text > p {
|
||||||
margin: .3em 0;
|
margin-left: .5em;
|
||||||
height: 9em;
|
line-height: 1.4em;
|
||||||
overflow: -moz-scrollbars-vertical;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#zotero-translators-list label.locale {
|
span.text-link {
|
||||||
font-weight: bold;
|
cursor: pointer;
|
||||||
margin-top: .5em;
|
color: -moz-nativehyperlinktext;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zotero-translators-list label.locale:first-child {
|
span.text-link:hover {
|
||||||
margin-top: 0;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zotero-translators-list label:not(.locale) {
|
/* Remove default underline from XUL links */
|
||||||
margin-left: 1.25em;
|
label.zotero-text-link {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
label.zotero-text-link:hover {
|
||||||
|
text-decoration: underline;
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue