1
0
Fork 0

Issue 2864: Add a "alternate" link on display page

This commit is contained in:
Michael 2017-06-06 17:56:22 +00:00
parent 7fb4b1be12
commit 932e14971f
2 changed files with 5 additions and 5 deletions

View file

@ -209,9 +209,6 @@ function display_content(App $a, $update = 0) {
$o = '';
$a->page['htmlhead'] .= replace_macros(get_markup_template('display-head.tpl'), array());
if ($update) {
$nick = $_REQUEST['nick'];
} else {
@ -281,6 +278,10 @@ function display_content(App $a, $update = 0) {
return;
}
$alternate = App::get_baseurl().'/display/'.$nick.'/'.$item_id.'.atom';
$a->page['htmlhead'] .= replace_macros(get_markup_template('display-head.tpl'),
array('$alternate' => $alternate));
$groups = array();

View file

@ -1,4 +1,4 @@
<link href='{{$alternate}}' rel='alternate' type='application/atom+xml'>
<script>
$(document).ready(function() {
$(".comment-edit-wrapper textarea").editor_autocomplete(baseurl+"/acl");
@ -6,4 +6,3 @@ $(document).ready(function() {
$(".wall-item-comment-wrapper textarea").editor_autocomplete(baseurl+"/acl");
});
</script>