source: trunk/grails-app/views/templates/nimble/profile/_currentstatus.gsp @ 51

Last change on this file since 51 was 51, checked in by duh, 9 years ago

-re-added nimble snapshot 0.3

File size: 984 bytes
Line 
1
2<%@ page import="intient.nimble.service.ProfileService" %>
3
4<script type="text/javascript">
5    function clearStatus() {
6    var dataString = "id=" + ${profile.owner.id.encodeAsHTML()};
7    $.ajax({
8      type: "POST",
9      url: "${createLink(action:'clearstatus')}",
10      data: dataString,
11      success: function(res) {
12        $("#activestatus").hide().empty();
13      },
14      error: function (xhr, ajaxOptions, thrownError) {
15        growl("error", "There was an error updating your status");
16      }
17    });
18  }
19</script>
20
21<g:if test="${profile.currentStatus != null}">
22  ${profile.currentStatus.status}
23  <span class="statuscreated"><g:formatDate format="E dd/MM/yyyy" date="${profile.currentStatus.dateCreated}"/></span>
24
25  <g:if test="${clear}">
26    <n:hasPermission target="${ProfileService.editPermission + profile.owner.id}">
27      <span class="clearstatus"><a onclick="clearStatus();" class="icon icon_delete">clear</a></span>
28    </n:hasPermission>
29  </g:if>
30
31</g:if>
Note: See TracBrowser for help on using the repository browser.