<commit_before>{include file="header.t"}

<h1>{$user_possessive|capitalize} (Mini) Dashboard
{if $user_is_self}
<a href="http://getsatisfaction.com/me">See your full dashboard on Get Satisfaction</a>
{else}
<a href="http://getsatisfaction.com/people/{$username_canonical}">See their full dashboard on Get Satisfaction</a>
{/if}
</h1>

{include file="question-box.t"}

<h2>{$user_possessive|capitalize} Recent {$company_name} Discussions</h2>

<div class="sidepane">
<div class="sidebar" style="background-color: white">
<a>Subscribe to 
{if $user_is_self}
your
{else}
their
{/if}
feed with RSS on getsatisfaction.com</a> (xxx).
</div>

<div class="sidebar">
<h3>Recent Topics from {$user_possessive} Get Satisfaction Dashboard:</h3>
<ul>
{foreach from=$noncompany_topics key=i item=topic}
<li>{$topic.title} in <strong>{$topic.company.fn}</strong></li>
{foreachelse}
{if $user_is_self} You haven't
{else}             {$user.fn} hasn't
{/if}
participated in any other discussions so far.
{/foreach}

</ul>
</div>
</div>

<table class="topic-list">
{foreach from=$company_topics key=i item=topic}
  <tr>
    <td><img src="images/{$topic.topic_style}_med.png"
                 alt="{$topic.topic_style}" /></td>
    <td class="content-col">
    <h3><a href="topic.php?id={$topic.id}">{$topic.title}</a></h3>
    <p>{if $topic.reply_count} Last reply
                 {else} Posted {/if} {$topic.updated_relative}.</p>

    <p>{$topic.content}</p>

    <table class="p-margin">
    <tr>
    <td>
    <img class="tiny-author-pic" style="vertical-align: middle;"
            src="{$topic.author.photo}" />
    </td>
    <td>
   <a href="minidashboard.php?user_url={$topic.author.url}">
   {$topic.author.name} 
   </a>
    {if $topic.topic_style == 'question'} asked this question
    {elseif $topic.topic_style == 'idea'} shared this idea
    {elseif $topic.topic_style == 'talk'} asked this question
    {elseif $topic.topic_style == 'problem'} reported this problem
    {/if}
    {$topic.published_relative}.
{if $topic.tags}
    It's tagged {foreach from=$topic.tags key=i item=tag}{if ($i>0)},{/if}
    <a href="discuss.php?tag={$tag}">{$tag}</a>{/foreach}
{/if}
    </td>
    </tr>
    </table>
    </td>
    <td class="reply-count-col">
      <span class="huge">{$topic.reply_count}</a></span> <br />
        {if $topic.reply_count == 1} reply {else} replies {/if} </td>
  </tr>
{foreachelse}
  <tr><td></td>
    <td class="content-col">
      {if $user_is_self} You haven't
      {else}             {$user.fn} hasn't
      {/if}
      participated in any {$company_name} discussions so far.
    </td><td></td>
  </tr>
{/foreach}
</table>

{include file="footer.t"}
<commit_msg>Link recent-topics in sidebar to main site.<commit_after>{include file="header.t"}

<h1>{$user_possessive|capitalize} (Mini) Dashboard
{if $user_is_self}
<a href="http://getsatisfaction.com/me">See your full dashboard on Get Satisfaction</a>
{else}
<a href="http://getsatisfaction.com/people/{$username_canonical}">See their full dashboard on Get Satisfaction</a>
{/if}
</h1>

{include file="question-box.t"}

<h2>{$user_possessive|capitalize} Recent {$company_name} Discussions</h2>

<div class="sidepane">
<div class="sidebar" style="background-color: white">
<a>Subscribe to 
{if $user_is_self}
your
{else}
their
{/if}
feed with RSS on getsatisfaction.com</a> (xxx).
</div>

<div class="sidebar">
<h3>Recent Topics from {$user_possessive} Get Satisfaction Dashboard:</h3>
<ul>
{foreach from=$noncompany_topics key=i item=topic}
<li><a href="{$topic.at_sfn}">{$topic.title}</a> in <strong>{$topic.company.fn}</strong></li>
{foreachelse}
{if $user_is_self} You haven't
{else}             {$user.fn} hasn't
{/if}
participated in any other discussions so far.
{/foreach}

</ul>
</div>
</div>

<table class="topic-list">
{foreach from=$company_topics key=i item=topic}
  <tr>
    <td><img src="images/{$topic.topic_style}_med.png"
                 alt="{$topic.topic_style}" /></td>
    <td class="content-col">
    <h3><a href="topic.php?id={$topic.id}">{$topic.title}</a></h3>
    <p>{if $topic.reply_count} Last reply
                 {else} Posted {/if} {$topic.updated_relative}.</p>

    <p>{$topic.content}</p>

    <table class="p-margin">
    <tr>
    <td>
    <img class="tiny-author-pic" style="vertical-align: middle;"
            src="{$topic.author.photo}" />
    </td>
    <td>
   <a href="minidashboard.php?user_url={$topic.author.url}">
   {$topic.author.name} 
   </a>
    {if $topic.topic_style == 'question'} asked this question
    {elseif $topic.topic_style == 'idea'} shared this idea
    {elseif $topic.topic_style == 'talk'} asked this question
    {elseif $topic.topic_style == 'problem'} reported this problem
    {/if}
    {$topic.published_relative}.
{if $topic.tags}
    It's tagged {foreach from=$topic.tags key=i item=tag}{if ($i>0)},{/if}
    <a href="discuss.php?tag={$tag}">{$tag}</a>{/foreach}
{/if}
    </td>
    </tr>
    </table>
    </td>
    <td class="reply-count-col">
      <span class="huge">{$topic.reply_count}</span> <br />
        {if $topic.reply_count == 1} reply {else} replies {/if} </td>
  </tr>
{foreachelse}
  <tr><td></td>
    <td class="content-col">
      {if $user_is_self} You haven't
      {else}             {$user.fn} hasn't
      {/if}
      participated in any {$company_name} discussions so far.
    </td><td></td>
  </tr>
{/foreach}
</table>

{include file="footer.t"}

{'fraction_non_alphanumeric': 0.19818987809383082, 'fraction_numerical': 0.003694126339120798, 'mean_word_length': 3.7292576419213974, 'pattern_counts': {'":': 0, '<': 140, '<?xml version=': 0, '>': 142, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2328768', 'n_tokens_mistral': 2023, 'n_tokens_neox': 1973, 'n_words': 427}