1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 17:23:00 +00:00

Add watch item to nav more menu, and tweak messages.

This commit is contained in:
Starbeamrainbowlabs 2019-12-23 16:17:33 +00:00
parent 53c6533a4c
commit 8914bff594
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 7 additions and 1 deletions

View file

@ -195,7 +195,7 @@
"version": "0.1", "version": "0.1",
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds per-user watchlists. When a page on a user's watchlist is edited, a notification email is sent.", "description": "Adds per-user watchlists. When a page on a user's watchlist is edited, a notification email is sent.",
"lastupdate": 1577117322, "lastupdate": 1577117779,
"optional": false, "optional": false,
"extra_data": [] "extra_data": []
}, },

View file

@ -210,6 +210,8 @@ register_module([
header("location: $returnto"); header("location: $returnto");
$message .= " <a href='".htmlentities($returnto)."'>Click here</a> to return to your previous page."; $message .= " <a href='".htmlentities($returnto)."'>Click here</a> to return to your previous page.";
} }
else
$message .= " <a href='javascript:history.back();'>Go back</a> to your previous page, or <a href='?action=watchlist'>review your watchlist</a>.</a>";
exit(page_renderer::render_main("Watchlist update successful", "<p>$message</p>")); exit(page_renderer::render_main("Watchlist update successful", "<p>$message</p>"));
}); });
} }

View file

@ -170,6 +170,10 @@
[ [
"&#x1f4e4; Upload", "&#x1f4e4; Upload",
"index.php?action=upload" "index.php?action=upload"
],
[
"&#x1f52d; Watch",
"index.php?action=watchlist-edit&do=add&page={page}"
] ]
] ]
} }, } },