summaryrefslogtreecommitdiffstats
path: root/templates/home.html
blob: a34a0d8e98b2b97ba4775e2bc63d28d45e962ad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{% extends "base.html" %}

{% block content %}
  This will, hopefully, eventually, become my website.
  <strong>Rejoice!</strong>
  <p>
    Some places you can already find me:
    <ul>
      <li>
        <a href="http://gitorious.org/~ryuslash">Gitorious</a>
        - This is where I host most of my projects.
      </li>
      <li>
        <a href="https://github.com/ryuslash">Github</a>
        - Sometimes I host projects here as well, but I prefer
        Gitorious.
      </li>
      <li>
        <a href="http://stackoverflow.com/users/459915/slash">Stack Overflow</a>
        - Don't really do much there, but I did just get my
        first reputation points.
        <br/>
        <a href="http://stackoverflow.com/users/459915/slash">
          <img src="http://stackoverflow.com/users/flair/459915.png?theme=dark"
	       width="208" height="58"
	       alt="profile for slash at Stack Overflow, Q&A
                    for professional and enthusiast
                    programmers"
	       title="profile for slash at Stack Overflow, Q&A
		      for professional and enthusiast programmers" />
        </a>
      </li>
    </ul>
  </p>

  {% for activity in activitylist %}
    <div class="activity_{% cycle 'even' 'uneven' %}
	        {% if forloop.last %}activity_last{% endif %}">
      {{ activity.date|date:'d M H:i:' }}
      {% if activity.actcategory == "blog" %}
        {% if activity.acttype == "add" %}
          I ranted about
        {% endif %}
        {% if activity.acttype == "edit" %}
          I changed my opinion about
        {% endif %}
        {% if activity.acttype == "delete" %}
          I lost my opinion about
        {% endif %}
        {% if activity.objpk %}
          <a href="/blog/post/{{ activity.objpk }}/">
        {% endif %}
      {% endif %}
      {% if activity.actcategory == "project" %}
        {% if activity.acttype == "add" %}
          I started a project named
        {% endif %}
        {% if activity.acttype == "edit" %}
          I updated the info on project
        {% endif %}
        {% if activity.acttype == "delete" %}
          I quit project
        {% endif %}
        {% if activity.objpk %}
          <a href="/projects/{{ activity.objpk }}/">
        {% endif %}
      {% endif %}
      {% if activity.actcategory == "link" %}
        {% if activity.acttype == "add" %}
          I found
        {% endif %}
        {% if activity.acttype == "edit" %}
          I corrected
        {% endif %}
        {% if activity.acttype == "delete" %}
          I unlinked
        {% endif %}
        {% if activity.objpk %}
          <a href="/links/">
        {% endif %}
      {% endif %}
      {{ activity.actdescription }}
      {% if activity.objpk %}
        </a>
      {% endif %}
    </div>
  {% endfor %}
{% endblock %}