mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Localize admin API section
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
<!-- Hold off on localizing for a few days while I finalize this page -->
|
||||
<h3>API Information</h3>
|
||||
<h3>{{i18n admin.api.long_title}}</h3>
|
||||
{{#if content.keyExists}}
|
||||
<strong>Key:</strong> {{content.key}} <button {{action regenerateKey target="content"}}>Regenerate API Key</button>
|
||||
<p>Keep this key <strong>secret</strong>, all users that have it may create arbirary posts on the forum as any user.</p>
|
||||
<strong>{{i18n admin.api.key}}:</strong> {{content.key}}
|
||||
<button {{action regenerateKey target="content"}}>{{i18n admin.api.regenerate}}</button>
|
||||
<p>{{{i18n admin.api.note_html}}}</p>
|
||||
{{else}}
|
||||
<p>Your API key will allow you to create and update topics using JSON calls.</p>
|
||||
<button {{action generateKey target="content"}}>Generate API Key</button>
|
||||
<p>{{{i18n admin.api.info_html}}}</p>
|
||||
<button {{action generateKey target="content"}}>{{i18n admin.api.generate}}</button>
|
||||
{{/if}}
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user