     @loader.show()
 
   pistachio:->
-
-    """
-      {{> @loader}}
-      {{> @listWrapper}}
+    """
+    {{> @loader}}
+    {{> @listWrapper}}
     """
 
 class GroupsMemberPermissionsListItemView extends KDListItemView

    <div class="fl">
      <div class="username">{{#(koding.username)}}</div>
      <div class="requested-at">{{(new Date #(requestedAt)).format('mm/dd/yy')}}</div>
      <div class="is-sent">{{(#(sent) and '✓') or ''}} Sent</div>
    </div>
    {{> @inviteButton}}
    """

class GroupsInvitationRequestsView extends JView

  constructor:->
    super
    @timestamp = new Date 0
    @fetchSomeRequests()


    @requestList = @requestListController.getListView()
    @requestList.on 'InvitationIsSent', (invitationRequest)=>
      @emit 'InvitationIsSent', invitationRequest

    @prepareBulkInvitations()
    @inviteTools = new KDFormViewWithFields
      cssClass          : 'invite-tools'
      fields            :
        Information     :
          label         : "Current state"
          type          : "hidden"
          nextElement   :
            currentState:
              itemClass : KDView
              partial   : 'Loading...'
              cssClass  : 'information-line'
        Count           :
          label         : "# of Invites"
          type          : "text"
          defaultValue  : 10
          placeholder   : "how many users do you want to Invite?"
          validate      :
            rules       :
              regExp    : /\d+/i
            messages    :
              regExp    : "numbers only please"
        Status          :
          label         : "Server response"
          type          : "hidden"
          nextElement   :
            statusInfo  :
              itemClass : KDView
              partial   : '...'
              cssClass  : 'information-line'
    , group

  prepareBulkInvitations:->
    group = @getData()
    group.countPendingInvitationRequests (err, count)=>
      if err then console.error error
      else
        [toBe, people] = if count is 1 then ['is','person'] else ['are','people']
        @inviteTools.inputs.currentState.updatePartial """
          There #{toBe} currently #{count} #{people} waiting for an invitation
          """

  fetchSomeRequests:->
    group = @getData()
