Sign up
Krinkle
/
intuition-web
Public
Browse files
about: Replace broken stats image with regular link to translatewiki.net
The About tab still used server-side stats graph, which seems to no longer be supported.
main
Krinkle committed on Mar 31

1 parent 4f19007 commit 6917acacc8899b3e54ef70189c7e61b79c516ebd
Showing with 8 additions and 17 deletions.
20 public_html/index.php
@@ -290,18 +290,9 @@
// About tab

$about = '<div class="tab-pane" id="tab-about">';
$about .= '<a href="https://translatewiki.net/wiki/Translating:Intuition">'
. Html::element( 'img', array(
'src' => 'https://translatewiki.net/w/i.php?title=Special:TranslationStats&graphit=1&'
. 'count=edits&scale=months&days=250&width=520&height=400&group=tsint-0-all'​,
'width' => 520,
'height' => 400,
'alt' => '',
'class' => 'pull-right'
) )
. '</a>';
$about .= ''
. '<div class="lead">' . $I18N->msg( 'usage' ) . '</div><ul>';
$about .= '<div class="lead">'
. '<p>' . htmlspecialchars( $I18N->msg( 'usage' ) ) . '</p>'
. '</div><ul>';
$tools = json_decode( file_get_contents( __DIR__ . '/tools.json' ), true );
foreach ( $tools as $domain => $info ) {
if ( isset( $info['title-msg'] ) ) {
@@ -316,8 +307,9 @@
. '</a></li>';
}
}
$about .= '</ul><a href="https://github.com/Krinkle/intuition/wiki/Documentation">'
. 'Technical documentation</a></div>';
$about .= '</ul><p><a href="https://translatewiki.net/wiki/Translating:Intuition">'
. htmlspecialchars( $I18N->msg( 'help-translate-tool', 'tsintuition' ) )
. '</a></p>';

$​toolSettings​[​'tabs'​][​'#tab-about'​] = $I18N->msg( 'tab-about' );
$tabContent .= $about;
5 public_html/tools.json
@@ -88,8 +88,7 @@
"wikiviewstats": {
"url": "​https://tools.wmflabs.org/wikiviewstats/​"
},
"xtools": {
"title-msg": [ "xtools", "title_xtools" ],
"url": "​https://tools.wmflabs.org/xtools/​"
"XTools": {
"url": "https://xtools.wmflabs.org/"
}
}
0 comments on commit 6917aca
Please sign in to comment.
© 2021 GitHub, Inc.
Terms
Privacy
Security
Status
Docs
Contact GitHubPricingAPITrainingBlogAbout
CodeCodeIssuesIssues1Pull requestsPull requestsSecuritySecurityInsightsInsights Code Issues Pull requests Security Insights