- <div class="problem-instructions">
- {{ prob.instructions.substr(0,32) }}
- </div>
- <div class="problem-time">
- {{ prob.added }}
+ <div class="col-sm-12 col-md-6">
+ <p v-html="prob.instructions"></p>
+ <p v-if="!!prob.preview" v-html="prob.solution"></p>
+ <p v-else class="problem-time">{{ timestamp2date(prob.added) }}</p>
+ <div v-show="prob.uid==userid" class="button-group">
+ <button @click="$emit('edit-problem')">Edit</button>
+ <button @click="$emit('delete-problem')">Delete</button>
+ </div>