~netlandish/links

4b9a73a23f4a8adff9e12b611ad06f0f702659d5 — Peter Sanchez 5 months ago 049d820
Adding more intuitive link to manage organizations
2 files changed, 5 insertions(+), 0 deletions(-)

M accounts/routes.go
M templates/settings.html
M accounts/routes.go => accounts/routes.go +1 -0
@@ 224,6 224,7 @@ func (s *Service) Settings(c echo.Context) error {
	pd.Data["change_password"] = lt.Translate("Change password")
	pd.Data["update_email"] = lt.Translate("Update email")
	pd.Data["edit_profile"] = lt.Translate("Edit profile")
	pd.Data["manage"] = lt.Translate("Manage Your Organizations")

	user := gctx.User.(*models.User)
	langTrans := map[string]string{

M templates/settings.html => templates/settings.html +4 -0
@@ 38,6 38,10 @@
                <th class="text-left">{{.pd.Data.timezone}}</th>
                <td colspan="3">{{if .user.Settings.Account.Timezone}}{{.user.Settings.Account.Timezone}}{{else}}{{.defaultTZ}}{{end}}</td>
            </tr>
	    <tr>
	        <th class="text-left">{{ .pd.Data.organizations }}</th>
		<td colspan="3"><a href="{{ reverse "core:org_list" }}" class="button primary is-small">{{ .pd.Data.manage }}</a></td>
	    </tr>
        </tbody>
    </table>
</section>