Handle missing api keys in user settings

This commit is contained in:
Max Wofford 2025-03-04 16:54:07 -05:00
parent b7ba2e0603
commit c2cae53c9b

View file

@ -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 %>