ShowEdit.html 1.38 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<hr/>
<f:link.action action="edit" arguments="{user:user}" class="btn btn-primary" >Edit your profile</f:link.action>
<f:if condition="{settings.features.enablePublicProfile}">
	<f:if condition="{user.publicProfile}">
		<f:then>
			<f:link.action class="btn alert-danger" action="changeProfileVisibility" arguments="{user:user}">Hide profile</f:link.action>
			</br>
			<span>
				Your profile page is currently active. Your Url is:</br>
				<f:uri.page addQueryString="true" absolute="true" />
			</span>
		</f:then>
		<f:else>
			<f:link.action class="btn alert-success" action="changeProfileVisibility" arguments="{user:user}">Make profile public</f:link.action>
			<span>Your profile page is hidden</span>
		</f:else>
	</f:if>
</f:if>
</br>

<hr />

<h3>Your privacy settings</h3>
<table>
	<thead>
		<td>show your data to </td>
		<td>Everyone</td>
		<td>Community</td>
		<td>Teams</td>
	</thead>
	<f:for each="{privacySettings}" as="privacySetting" key="privacySettingValue">
		<tr>
			<td>{privacySettingValue}</td>
			<td>{f:if(condition:privacySetting.public, then: 'Yes', else: 'No')}</td>
			<td>{f:if(condition:privacySetting.authenticated, then: 'Yes', else: 'No')}</td>
			<td>{f:if(condition:privacySetting.groups, then: 'Yes', else: 'No')}</td>
		</tr>
	</f:for>
</table>
<f:link.action class="btn btn-secondary" action="privacyEdit" arguments="{user:user}">Edit privacy settings</f:link.action>