mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-18 08:40:49 +00:00
1f2b7dff15
After this change, in desktop Minerva the copyright text in the footer should match desktop Minerva. In mobile Minerva the copyright text in the footer is shortened and doesn't contain terms of use. It should match Vector mobile ?useskin=vector&useformat=mobile Depends-On: I3473908e08f643b4c60aafc470dd124516955323 Change-Id: I2895975aaa1d09d228f80aff74381e88034a0137 Bug: T289401
63 lines
1.5 KiB
JavaScript
63 lines
1.5 KiB
JavaScript
import mustache from 'mustache';
|
|
import template from '!!raw-loader!../includes/Skins/footer.mustache';
|
|
import Logo from '!!raw-loader!../includes/Skins/Logo.mustache';
|
|
import footerItemList from '!!raw-loader!../includes/Skins/footerItemList.mustache';
|
|
import { lastModifiedBar, lastModifiedBarActive } from './lastModifiedBar.stories';
|
|
import { placeholder } from './utils';
|
|
|
|
export default {
|
|
title: 'Footer'
|
|
};
|
|
|
|
const FOOTER_TEMPLATE_DATA = {
|
|
'msg-mobile-frontend-sitename': 'Site title OR Logo',
|
|
'html-after-content': placeholder( 'Extensions can add here e.g. Related Articles.' ),
|
|
'data-info': [
|
|
{
|
|
id: 'info',
|
|
'array-items': [
|
|
{
|
|
id: 'copyright',
|
|
html: 'Content is available under <a rel="nofollow" href="#">Reading Web 3.0 License</a> unless otherwise noted.'
|
|
}
|
|
]
|
|
}
|
|
],
|
|
'data-places': [
|
|
{
|
|
id: 'places',
|
|
'array-items': [
|
|
{
|
|
id: 'terms-use',
|
|
html: '<a href="#">Terms of Use</a>'
|
|
},
|
|
{
|
|
id: 'privacy',
|
|
html: '<a href="#">Privacy</a>'
|
|
},
|
|
{
|
|
id: 'desktop-toggle',
|
|
html: '<a href="#">Desktop</a>'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
};
|
|
|
|
export const footer = () =>
|
|
mustache.render( template, {
|
|
'data-footer': Object.assign( FOOTER_TEMPLATE_DATA, {
|
|
'data-minerva-history-link': lastModifiedBar()
|
|
} )
|
|
} );
|
|
|
|
export const footerRecentEdit = () =>
|
|
mustache.render( template, {
|
|
'data-footer': Object.assign( FOOTER_TEMPLATE_DATA, {
|
|
'data-minerva-history-link': lastModifiedBarActive()
|
|
} )
|
|
}, {
|
|
footerItemList,
|
|
Logo
|
|
} );
|