diff --git a/mobile/templates/mobile/_avatar.html b/mobile/templates/mobile/_avatar.html new file mode 100644 index 0000000..f4cb8e8 --- /dev/null +++ b/mobile/templates/mobile/_avatar.html @@ -0,0 +1,11 @@ +{% comment %} + Avatar-initials circle -- the one idiom repeated across every M-screen + (event_detail's "Your answers" rows, me.html's own header + "People I + manage" rows, news_detail's byline). Expects ``person`` (anything with + first_name/last_name) in scope; all other vars are optional and default + to the most common case (me.html's "People I manage" rows): + - size_class: the h-*/w-* pair, default "h-10 w-10" + - text_class: the initials' font size, default "text-sm" + - bg_class: the circle's background, default "bg-steel" +{% endcomment %} +{{ person.first_name|slice:":1" }}{{ person.last_name|slice:":1" }} diff --git a/mobile/templates/mobile/event_detail.html b/mobile/templates/mobile/event_detail.html index 59b2b05..63a9973 100644 --- a/mobile/templates/mobile/event_detail.html +++ b/mobile/templates/mobile/event_detail.html @@ -50,7 +50,7 @@ {% if not forloop.first %}
{% endif %}