{% macro options(current, values, default) -%} {% for value in values %} {% endfor %} {%- endmacro %} {% macro sort(root, methods, selected) -%} {% for method in methods %} {{ format!("{}{}", method.get(0..1).unwrap_or_default().to_uppercase(), method.get(1..).unwrap_or_default()) }} {% endfor %} {%- endmacro %} {% macro search(root, search) -%}
{%- endmacro %} {% macro render_flair(flair_parts) -%} {% for flair_part in flair_parts.clone() %}{% if flair_part.flair_part_type == "emoji" %}{% else if flair_part.flair_part_type == "text" && !flair_part.value.is_empty() %}{{ flair_part.value }}{% endif %}{% endfor %} {%- endmacro %} {% macro sub_list(current) -%}Enable HLS to view with audio, or disable this notification
r/{{ post.community }} • u/{{ post.author.name }} {% if post.author.flair.flair_parts.len() > 0 %} {% call render_flair(post.author.flair.flair_parts) %} {% endif %} • {{ post.rel_time }} {% if !post.awards.is_empty() && prefs.hide_awards != "on" %} • {% for award in post.awards.clone() %} {{ award.count }} {% endfor %} {% endif %}
{% let community -%} {% if post.community.starts_with("u_") -%} {% let community = format!("u/{}", &post.community[2..]) -%} {% else -%} {% let community = format!("r/{}", post.community) -%} {% endif -%} {{ community }} • u/{{ post.author.name }} • {{ post.rel_time }} {% if !post.awards.is_empty() && prefs.hide_awards != "on" %} {% for award in post.awards.clone() %} {% endfor %} {% endif %}