2013-05-26 19:21:07 +00:00
< groups-pane: >
< ul class = "nav nav-tabs" >
< li class = "active" > < a data-toggle = 'tab' data-target = "#groups-party" > Party< / a > < / li >
< li > < a data-toggle = 'tab' data-target = "#groups-guilds" > Guilds< / a > < / li >
< / ul >
< div class = "tab-content" >
< div class = "tab-pane active" id = "groups-party" >
{#if _party.id} <!-- user in a party? -->
< app:groups:group group = {_party} / >
{else if _user.party.invitation}
<!-- TODO show by whom -->
< h2 > You're Invited To {_party.name}< / h2 >
< a class = 'btn btn-success' x-bind = "click: partyAccept" > Accept< / a >
< a class = 'btn btn-danger' x-bind = "click: partyReject" > Reject< / a >
{else}
< h2 > Create A Party< / h2 >
<!-- Not in a party , no invites - create a new one -->
< p > You are not in a party. You can either create one and invite friends, or if you want to join an existing party, have them enter:< / p >
< pre class = prettyprint > {_user.id}< / pre >
2013-05-26 20:32:21 +00:00
< form class = form-inline x-bind = "submit:groupCreate" data-type = "party" >
{#if _groupError}
< div class = 'alert alert-danger' > {_groupError}< / div >
2013-05-26 19:21:07 +00:00
{/}
< div class = control-group >
< input type = "text" class = "input-medium" placeholder = "Party Name" value = "{_newParty}" / >
< input type = "submit" class = "btn" value = "Create" / >
< / div >
< / form >
{/}
< / div >
< div class = 'tab-pane' id = "groups-guilds" >
< ul class = "nav nav-pills" >
{#each _guilds as :guild}
< li class = "active" > < a data-toggle = 'tab' data-target = "#groups-party-{:guild.id}" > {:guild.name}< / a > < / li >
{/}
< / ul >
{#each _guilds as :guild}
< div class = "tab-pane" id = "groups-guild-{:guild.id}" >
< app:groups:group group = {:guild} / >
< / div >
{/}
< / div >
< / div >
< group: >
< div class = 'row-fluid' >
< div class = 'span4 border-right' >
{{#if equal(@group.id,'habitrpg')}}
< div class = 'tavern-pane' >
< table > < tr >
< td > < div class = 'NPC-Daniel' > < / div > < / td >
< td >
< div class = "popover static-popover fade right in" >
< div class = "arrow" > < / div >
< h3 class = "popover-title" > Daniel Johansson< / h3 >
< div class = "popover-content" >
Welcome to the Tavern! I'm < a target = "_blank" href = "http://www.kickstarter.com/profile/2014640723" > Daniel< / a > , the bar keep. If you want to rest a while (going on vacation? sudden illness?), I'll set you up at the inn - dailies won't hurt you while you're resting. Stay a while & meet the locals.
< div > < button x-bind = "click:toggleResting" class = 'btn btn-large btn-success {#if _user.flags.rest}active{/}' > {#if _user.flags.rest}Check Out of Inn{else}Rest In The Inn{/}< / button > < / div >
< / div >
< / div >
< / td >
< / tr > < / table >
< / div >
< div class = 'alert alert-info {#unless _user.flags.rest}hidden{/}' > Whilst resting your dailies are saved and aren't effected by day turn-over. Whether you check out tomorrow or in a weeks time you'll continue in the same state as when you checked in.< / div >
< div class = well >
< h3 > Resources< / h3 >
< ul class = unstyled >
< li > < h4 > < a target = "_blank" href = "http://community.habitrpg.com/forums/lfg" > LFG Posts< / a > < / h4 > < / li >
< li > < h4 > < a target = "_blank" href = "http://www.youtube.com/watch?feature=player_embedded&v=cT5ghzZFfao" > Tutorial< / a > < / h4 > < / li >
< li > < h4 > < a target = "_blank" href = "http://community.habitrpg.com/faq-page" > FAQ< / a > < / h4 > < / li >
< li > < h4 > < a target = "_blank" href = "https://github.com/lefnire/habitrpg/issues?state=open" > Report a Problem< / a > < / h4 > < / li >
< li > < h4 > < a target = "_blank" href = "https://trello.com/board/habitrpg/50e5d3684fe3a7266b0036d6" > Request a Feature< / a > < / h4 > < / li >
< li > < h4 > < a target = "_blank" href = "http://community.habitrpg.com/forum" > Community Forum< / a > < / h4 > < / li >
< / ul >
< / div >
{{else}}
< h3 > {{@group.name}}< / h3 >
2013-05-02 18:26:25 +00:00
< table class = "table table-striped" >
2013-05-26 19:21:07 +00:00
{{#each @group.members as :memberId}}
< tr > < td > {{username(_members[:memberId].auth, _members[:memberId].profile.name)}}< / td > < td > ({{:memberId}})< / td > < / tr >
2013-05-02 18:26:25 +00:00
{{/}}
< / table >
2013-05-26 20:32:21 +00:00
{#with @group as :group}
< form class = "form-inline" x-bind = "submit:groupInvite" data-type = "{@group.type}" >
{#if _groupError}
< div class = 'alert alert-danger' > {_groupError}< / div >
2013-05-02 18:26:25 +00:00
{/}
< div class = 'control-group' >
2013-05-26 20:32:21 +00:00
< input type = "text" class = "input-medium" placeholder = "User Id" value = "{_groupInvitee}" >
2013-05-02 18:26:25 +00:00
< input type = "submit" class = "btn" value = "Invite" / >
< / div >
< / form >
2013-05-26 20:32:21 +00:00
< a class = 'btn btn-danger' x-bind = "click:groupLeave" > Leave< / a >
{/}
2013-05-26 19:21:07 +00:00
{{/}}
2013-02-17 05:42:42 +00:00
2013-05-26 19:21:07 +00:00
< / div >
< div class = 'span8' >
2013-02-17 05:42:42 +00:00
2013-05-26 19:21:07 +00:00
{{#if equal(@group.id,'habitrpg')}}
< h3 > Tavern Talk & LFG< / h3 >
< div class = 'row-fluid' >
< div class = 'span3' >
< ul class = 'unstyled buttonList' >
< li > < a class = 'btn btn-info' style = 'width:100%' target = "_blank" href = "http://community.habitrpg.com/faq-page" > FAQ< / a > < / li >
< li > < a class = 'btn btn-info' style = 'width:100%' target = "_blank" href = "https://github.com/lefnire/habitrpg/issues?state=open" > Report a Problem< / a > < / li >
< li > < a class = 'btn btn-info' style = 'width:100%' target = "_blank" href = "https://trello.com/board/habitrpg/50e5d3684fe3a7266b0036d6" > Request a Feature< / a > < / li >
< / ul >
< / div >
< div class = span9 >
< app:groups:chat-box group = {@group} / >
< / div >
< / div >
{{else}}
< h3 > Chat< / h3 >
< app:groups:chat-box group = {@group} / >
{{/}}
2013-05-02 12:17:04 +00:00
2013-05-26 19:21:07 +00:00
< ul class = 'unstyled tavern-chat' >
{#each @group.chat as :message}
< app:groups:chat-message message = {{:message}} / >
{/}
< / ul >
< / div >
< / div >
2013-05-04 15:03:03 +00:00
2013-05-26 19:21:07 +00:00
< chat-box: >
{{#with @group as :group}}
< form x-bind = 'submit:sendChat' >
< textarea class = "span6" rows = "3" x-bind = 'keyup:chatKeyup' > {_chatMessage}< / textarea > < br / >
< input class = btn type = submit value = "Send Chat" / >
< / form >
{{/}}
2013-05-04 15:03:03 +00:00
< chat-message: >
2013-05-05 22:29:10 +00:00
< li class = "{{#if indexOf(:message.text, username(_user.auth, _user.profile.name))}}highlight{{/if}}" >
2013-05-05 17:07:36 +00:00
< span
class="label {{#if @message.npc}}label-success{{else if @message.contributor}}label-inverse{{else if equal(@message.uuid,_user.id)}}label-info{{/}} chat-message"
rel='tooltip' title="{{@message.contributor}}{{@message.npc}}">
2013-05-05 17:44:24 +00:00
{{@message.user}}< / span > {{@message.text}} - < span class = 'muted time' > {relativeDate(@message.timestamp, _currentTime)}
2013-05-19 14:02:04 +00:00
{{#if or(_user.backer.admin,equal(@message.uuid,_user.id))}}{{#with @message}}< a x-bind = "click:deleteChatMessage" > < i rel = tooltip title = Delete class = icon-remove > < / i > < / a > {{/}}{{/}}
2013-05-05 17:07:36 +00:00
< / span >
2013-05-05 17:44:24 +00:00
< / li >