info.html -> portal.html

This commit is contained in:
Alexandre Aubin 2019-03-19 23:29:46 +01:00
parent 80f0733467
commit fc688418ce
5 changed files with 10 additions and 10 deletions

View file

@ -443,7 +443,7 @@ function serve(uri, cache)
-- Load login.html as index
if rel_path == "/" then
if is_logged_in() then
rel_path = "/info.html"
rel_path = "/portal.html"
else
rel_path = "/login.html"
end
@ -535,7 +535,7 @@ function get_data_for(view)
}
-- For those views, we may need user information
elseif view == "info.html"
elseif view == "portal.html"
or view == "edit.html"
or view == "password.html"
or view == "ynhpanel.json" then
@ -701,7 +701,7 @@ function edit_user()
-- Reset the password cache
cache:set(user.."-password", args.newpassword, conf["session_timeout"])
return redirect(conf.portal_url.."info.html")
return redirect(conf.portal_url.."portal.html")
else
flash("fail", t("password_changed_error"))
end
@ -884,7 +884,7 @@ function edit_user()
-- Ugly trick to force cache reloading
set_headers(user)
flash("win", t("information_updated"))
return redirect(conf.portal_url.."info.html")
return redirect(conf.portal_url.."portal.html")
else
flash("fail", t("user_saving_fail"))

View file

@ -260,7 +260,7 @@ function init_portal_button_and_overlay()
// Prepare and inject the portal overlay (what is activated when clicking on the portal button)
var portalOverlay = document.createElement('iframe');
portalOverlay.src = "/yunohost/sso/info.html";
portalOverlay.src = "/yunohost/sso/portal.html";
portalOverlay.setAttribute("id","ynh-overlay");
portalOverlay.setAttribute("style","visibility: hidden;"); // make sure the overlay is invisible already when loading it
document.body.insertBefore(portalOverlay, null);

View file

@ -3,7 +3,7 @@
<li><a id="ynh-logout" class="icon icon-connexion" href="?action=logout">{{t_logout}}</a></li>
</ul>
<a class="user-container user-container-edit" href="info.html">
<a class="user-container user-container-edit" href="portal.html">
<h2 class="user-username">{{{uid}}}</h2>
<small class="user-fullname">{{givenName}} {{sn}}</small>
<span class="user-mail">{{mail}}</span>
@ -11,7 +11,7 @@
</div>
<div class="ynh-wrapper edit">
<form class="form-edit" role="form" method="POST" action="edit.html">
<form class="form-edit" role="form" method="POST" action="portal.html">
<div class="form-section">
<div class="form-group">
@ -47,7 +47,7 @@
</div>
<div class="btn-group">
<a role="button" href="info.html" class="btn large-btn">{{t_cancel}}</a>
<a role="button" href="portal.html" class="btn large-btn">{{t_cancel}}</a>
<input type="submit" class="btn classic-btn large-btn" value="{{t_ok}}">
</div>

View file

@ -2,7 +2,7 @@
<ul class="user-menu">
<li><a id="ynh-logout" class="icon icon-connexion" href="?action=logout">{{t_logout}}</a></li>
</ul>
<a class="user-container user-container-password" href="info.html">
<a class="user-container user-container-password" href="portal.html">
<h2 class="user-username">{{{uid}}}</h2>
<small class="user-fullname">{{givenName}} {{sn}}</small>
<span class="user-mail">{{mail}}</span>
@ -30,7 +30,7 @@
<input type="password" class="form-text" id="confirm" name="confirm" placeholder="{{t_confirm}}" required>
</div>
<div class="btn-group">
<a role="button" href="info.html" class="btn large-btn btn-default">{{t_cancel}}</a>
<a role="button" href="portal.html" class="btn large-btn btn-default">{{t_cancel}}</a>
<input type="submit" class="btn large-btn classic-btn" value="{{t_ok}}">
</div>
</div>