vextoly/gitman

Fork of patx/gitman.

    <ol class="activity-feed" data-paginated-list>
      % for action in actions:
        % repo_url = "/" + action["repo_owner_username"] + "/" + action["repo_name"] if action["repo_owner_username"] and action["repo_name"] else ""
        % show_repo_context = repo_url and action["target_url"] != repo_url
        <li>
          <p class="activity-title">
            % if action["actor_url"]:
              <strong><a href="{{action['actor_url']}}">{{action["actor_label"]}}</a></strong>
            % else:
              <strong>{{action["actor_label"]}}</strong>
            % end
            {{action["summary"]}}
            <a href="{{action['target_url']}}">{{action["target_label"]}}</a>
          </p>
          <p class="muted">
            % if show_repo_context:
              in <a href="{{repo_url}}">{{action["repo_owner_username"]}}/{{action["repo_name"]}}</a> ·
            % end
            {{format_datetime(action["occurred_at"])}}
          </p>
          % if action["detail"]:
            <p class="activity-detail">{{!render_markdown_links(action["detail"])}}</p>
          % end
        </li>
      % end
    </ol>