Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ shell-server@0.3.0
babel-runtime@1.1.1
dynamic-import@0.2.0
ecmascript
zenorocha:clipboard
1 change: 1 addition & 0 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ underscore@1.0.10
url@1.1.0
webapp@1.4.0
webapp-hashing@1.0.9
zenorocha:clipboard@1.7.1
10 changes: 8 additions & 2 deletions callins.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@ <h1>Answer call-in queue</h1>
<tr data-bbedit="{{_id}}">
<td>{{link id=target title="Chat room" chat=true icon="icon-comment" class="pull-right"}}{{link target}}{{#if hunt_link type target}}
<br/><small>&nbsp;↦&nbsp;<a href="{{hunt_link type target}}"
target="_blank">on&nbsp;hunt&nbsp;site</a></small>
target="_blank">on&nbsp;hunt&nbsp;site
{{#if sessionNick}}
<span class="copy-and-go" data-clipboard-target="#answer-{{_id}}" title="copy, mark submitted, and go">
<i class="icon icon-file"></i><i class="icon icon-check"></i><i class="icon icon-share-alt"></i>
</span>
{{/if}}
</a></small>
{{/if}}</td>
<td><div class="answer">{{answer}}</div>{{#if backsolve}}(backsolve){{/if}}{{#if provided}}(provided){{/if}}</td>
<td><div id="answer-{{_id}}" class="answer">{{answer}}</div>{{#if backsolve}}(backsolve){{/if}}{{#if provided}}(provided){{/if}}</td>
<td>{{pretty_ts this.created}}</td>
<td>{{#with lastAttempt type target}}{{pretty_ts timestamp}} <small>({{pretty_ts timestamp=timestamp style="brief duration"}})</small>{{else}}-{{/with}}</td>
{{#if sessionNick}}
Expand Down
12 changes: 12 additions & 0 deletions client/callins.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ Template.callins.helpers
Template.callins.onRendered ->
$("title").text("Answer queue")
share.ensureNick()
this.clipboard = new Clipboard '.copy-and-go'

Template.callins.onDestroyed ->
this.clipboard.destroy()

Template.callins.events
"click .bb-addquip-btn": (event, template) ->
Expand Down Expand Up @@ -99,3 +103,11 @@ Template.callin_row.events
object: template.get_callin_id(event)
fields: submitted_to_hq: checked
who: Session.get('nick')

"click .copy-and-go": (event, template) ->
Meteor.call 'setField',
type: 'callins'
object: @_id
fields: submitted_to_hq: true
who: Session.get 'nick'