]> git.r.bdr.sh - rbdr/forum/blobdiff - src/components/topic_summary/topic_summary.svelte
Use babel-eslint as linter parser
[rbdr/forum] / src / components / topic_summary / topic_summary.svelte
index 88b2b83232dcae2fed43f8539c97c406692bd462..5f2678b7d711a6ea5495966e821991133ded9b0c 100644 (file)
@@ -1,16 +1,24 @@
 <script>
 <script>
-  export let topic;
+       export let topic;
 
 
-  import { _ } from 'svelte-i18n';
-  import { readableTime } from '$/utils/readable_time.js';
+       import { _ } from 'svelte-i18n';
+       import { readableTime } from '$/utils/readable_time.js';
 
 
-  $: remainingTime = (topic.updated_at + topic.ttl) - Date.now();
-  $: remaining = readableTime(remainingTime);
+       $: remainingTime = topic.updated_at + topic.ttl - Date.now();
+       $: remaining = readableTime(remainingTime);
 </script>
 
 </script>
 
-<li class="h-entry" title="{$_('topic.title')}">
-  <span class="p-name"><a class="u-url u-uid" title="{$_('topic.permalink_title')}" href="/t/{topic.id}">{topic.title}</a></span>
-  <span class="topic-ttl">({$_('topic.remaining_time', { values: { remaining: $_(remaining.label, { values: { count: remaining.count } }) } })})</span>
+<li class="h-entry" title={$_('topic.title')}>
+       <span class="p-name"
+               ><a class="u-url u-uid" title={$_('topic.permalink_title')} href="/t/{topic.id}"
+                       >{topic.title}</a
+               ></span
+       >
+       <span class="topic-ttl"
+               >({$_('topic.remaining_time', {
+                       values: { remaining: $_(remaining.label, { values: { count: remaining.count } }) }
+               })})</span
+       >
 </li>
 
 <style>
 </li>
 
 <style>