Login
4 branches 0 tags
Ben (Desktop/Arch) Big DB cleanup, better user/project metadata 9845a08 1 month ago 58 Commits
rubhub / templates / user.html
<!DOCTYPE html>
<html>
<head>
	<title>{{ user.name }}</title>
</head>
<body>
	<section>
		<div class="page-header">
			<h1 class="project-header"><a href="/{{ user.slug }}">{{ user.name }}</a></h1>
			{% if is_owner %}
				<a class="btn" href="/settings">Edit</a>
			{% endif %}
		</div>
		<div class="card">
			{% if !user.description.is_empty() %}
			<p>{{ user.description }}</p>
			{% endif %}

			<dl class="meta user-meta">
				<dt>E-Mail</dt>
				<dd><a href="mailto:{{ user.email }}">{{ user.email }}</a></dd>

				{% if !user.pronouns.is_empty() %}
				<dt>Pronouns</dt>
				<dd>{{ user.pronouns }}</dd>
				{% endif %}

				{% if !user.organization.is_empty() %}
				<dt>Organization</dt>
				<dd>{{ user.organization }}</dd>
				{% endif %}

				{% if !user.location.is_empty() %}
				<dt>Location</dt>
				<dd>{{ user.location }}</dd>
				{% endif %}

				{% if !user.website.is_empty() %}
				<dt>Website</dt>
				<dd><a href="{{ user.website }}">{{ user.website }}</a></dd>
				{% endif %}
			</dl>
		</div>
		{% if projects.len() > 0 %}
			<br/>
			<div class="page-header">
				<h2 class="project-header">Projects</h2>
				{% if is_owner %}
					<a class="btn" href="/projects/new">New project</a>
				{% endif %}
			</div>

			<div class="card-grid">
			{% for project in projects %}
				{% include "project_card.html" %}
			{% endfor %}
			</div>
		{% endif %}
	</section>
</body>
</html>