def get(self): note = model.Note.get(self.subdomain, self.params.id) if not note: return self.error(400, 'No note with ID: %r' % self.params.id) note.status_text = utils.get_note_status_text(note) captcha_html = note.hidden and self.get_captcha_html() or '' # Check if private info should be revealed. content_id = 'view:' + note.person_record_id reveal_url = reveal.make_reveal_url(self, content_id) show_private_info = reveal.verify(content_id, self.params.signature) self.render('templates/flag_note.html', onload_function='load_language_api()', note=note, captcha_html=captcha_html, reveal_url=reveal_url, flag_note_page=True, show_private_info=show_private_info, signature=self.params.signature)
def get(self): note = model.Note.get(self.repo, self.params.id) if not note: return self.error(400, 'No note with ID: %r' % self.params.id) note.status_text = utils.get_note_status_text(note) note.source_date_local = self.to_local_time(note.source_date) captcha_html = note.hidden and self.get_captcha_html() or '' # Check if private info should be revealed. content_id = 'view:' + note.person_record_id reveal_url = reveal.make_reveal_url(self, content_id) show_private_info = reveal.verify(content_id, self.params.signature) self.render('flag_note.html', note=note, captcha_html=captcha_html, reveal_url=reveal_url, flag_note_page=True, show_private_info=show_private_info, signature=self.params.signature)