mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
Handle missing api keys in user settings
This commit is contained in:
parent
b7ba2e0603
commit
c2cae53c9b
1 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
<% if @user.api_keys.any? %>
|
||||
<code>
|
||||
<pre>
|
||||
# put this in your ~/.wakatime.cfg file
|
||||
|
|
@ -9,3 +10,8 @@ api_key = <%= @user.api_keys.last.token %>
|
|||
# any other wakatime configs you want to add: https://github.com/wakatime/wakatime-cli/blob/develop/USAGE.md#ini-config-file
|
||||
</pre>
|
||||
</code>
|
||||
<% else %>
|
||||
<p>
|
||||
No API keys found. Please migrate your keys from waka.hackclub.com below. New API key generation has yet to be implemented.
|
||||
</p>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue