Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

Commit

Permalink
projectのトラッカーやリポジトリ、カテゴリなど未設定の部分のデフォルトテキストをつけた
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacook committed Oct 25, 2014
1 parent 7f5aa16 commit 3b94b6a
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/statics/less/main.less
Expand Up @@ -268,6 +268,12 @@ span {
background: #FCF8E3;
}

// 「未設定」
.none_set {
color: @gray-light;
font-style: italic;
}

// 神降臨
.god {
position: fixed;
Expand Down
6 changes: 6 additions & 0 deletions src/statics/less/projects.less
Expand Up @@ -213,3 +213,9 @@
margin-top: 20px;
}
}



.hoge {
color: red;
}
6 changes: 5 additions & 1 deletion src/templates/events/components/list-item.html
Expand Up @@ -11,7 +11,11 @@
<h3>{% if event.period_start %}<span class="title-date">{{ event.period_start | date:"m/d" }} </span>{% endif %}{{ event.title }}</h3>
<div class="event-category">
<span class="glyphicon glyphicon-folder-open event-category-icon"></span>
<span>{{ event.category | default_if_none:"未設定" }}</span>
{% if event.category %}
<span>{{ event.category }}</span>
{% else %}
<span class="none_set">{% trans "None" %}</span>
{% endif %}
</div>
</div>

Expand Down
6 changes: 5 additions & 1 deletion src/templates/events/event_detail.html
Expand Up @@ -21,7 +21,11 @@
<div class="page-header event-detail-header-wrap">
<div class="event-category">
<span class="glyphicon glyphicon-folder-open event-category-icon"></span>
<span>{{ event.category | default_if_none:"未設定" }}</span>
{% if event.category %}
<span>{{ event.category }}</span>
{% else %}
<span class="none_set">{% trans "None" %}</span>
{% endif %}
</div>
<div class="event-title{% if object.pub_state == "protected" %} bg-protected{% endif %}">
{% if event.pub_state == 'protected' %}
Expand Down
24 changes: 21 additions & 3 deletions src/templates/projects/project_detail.html
Expand Up @@ -37,15 +37,33 @@ <h1>{{ project.title }}</h1>
</dl>
<dl class="row">
<dt class="col col-lg-3 col-xs-4">{% trans "Category" %}</dt>
<dd class="col col-lg-9 col-xs-8">{{ project.category }}</dd>
<dd class="col col-lg-9 col-xs-8">
{% if project.category %}
{{ project.category }}
{% else %}
<span class="none_set">{% trans "None" %}</span>
{% endif %}
</dd>
</dl>
<dl class="row">
<dt class="col col-lg-3 col-xs-4">{% trans "Tracker" %}</dt>
<dd class="col col-lg-9 col-xs-8"><a href="{{ project.tracker }}">{{ project.tracker }}</a></dd>
<dd class="col col-lg-9 col-xs-8">
{% if project.tracker %}
<a href="{{ project.tracker }}">{{ project.tracker }}</a>
{% else %}
<span class="none_set">{% trans "None" %}</span>
{% endif %}
</dd>
</dl>
<dl class="row">
<dt class="col col-lg-3 col-xs-4">{% trans "Repository" %}</dt>
<dd class="col col-lg-9 col-xs-8"><a href="{{ project.repository }}">{{ project.repository }}</a></dd>
<dd class="col col-lg-9 col-xs-8">
{% if project.repository %}
<a href="{{ project.repository }}">{{ project.repository }}</a>
{% else %}
<span class="none_set">{% trans "None" %}</span>
{% endif %}
</dd>
</dl>
</div>
</div>
Expand Down

2 comments on commit 3b94b6a

@tunacook
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

後々にpoファイル更新してコミット

@tunacook
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hogeとか辛いことになってるので明日直す

Please sign in to comment.