A last.fm clone written in Elixir
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
1.8 KiB

<h1 class="title">Worker Settings</h1>
<div class="columns">
<div class="column">
<div class="card">
<div class="card-header has-background-primary">
<h3 class="card-header-title has-text-light">
Discogs Worker
</h3>
</div>
<div class="card-content">
<p>
<%= if not is_nil(@state.discogs) do %>
<div>Ratelimit Total: <%= @state.discogs.rate_limit.total %></div>
<div>Ratelimit Remaining: <%= @state.discogs.rate_limit.remaining %></div>
<div>Updated At: <%= Timex.from_now(@state.discogs.updated_at) %></div>
<div>Fetch Interval: <%= @state.discogs.fetch_interval / 1000 %> seconds</div>
<% end %>
</p>
</div>
<footer class="card-footer">
<a href="<%= Routes.worker_path(@conn, :edit, :discogs) %>" class="card-footer-item">Edit Settings</a>
<a href="#" class="card-footer-item">Run Now</a>
</footer>
</div>
</div>
<div class="column">
<div class="card">
<div class="card-header has-background-primary">
<h3 class="card-header-title has-text-light">
Listenbrainz Worker
</h3>
</div>
<div class="card-content">
<p>
<%= if not is_nil(@state.listenbrainz) do %>
<div>Ratelimit Total: <%= @state.listenbrainz.rate_limit.total %></div>
<div>Ratelimit Remaining: <%= @state.listenbrainz.rate_limit.remaining %></div>
<div>Updated At: <%= Timex.from_now(@state.listenbrainz.updated_at) %></div>
<div>Fetch Interval: <%= @state.listenbrainz.fetch_interval / 1000 %> seconds</div>
<% end %>
</p>
</div>
<footer class="card-footer">
<a href="<%= Routes.worker_path(@conn, :edit, :listenbrainz) %>" class="card-footer-item">Edit Settings</a>
<a href="#" class="card-footer-item">Run Now</a>
</footer>
</div>
</div>
</div>