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

Commit

Permalink
Profile.remarksをみて、未設定ならモーダルが出るようにした closes #376
Browse files Browse the repository at this point in the history
  • Loading branch information
giginet committed Nov 10, 2014
1 parent 10e8bf6 commit c864868
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/templates/roughpages/index.authenticated.html
Expand Up @@ -4,13 +4,15 @@
{% load i18n %}
{% load markdown %}
{% load staticfiles %}
{% load profiles_tags %}
{% block title %}{% trans "My page" %}{% endblock %}
{% block pre_css %}
{{ block.super }}
<link type="text/less" rel="stylesheet" href="{% static "less/wall.less" %}" media="screen">
{% endblock %}
{% block content-main %}
{% if profile.remarks %}
{% get_my_profile as profile %}
{% if not profile.remarks %}
<div class="modal fade" id="tutorial-modal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
Expand All @@ -20,7 +22,7 @@ <h4 class="modal-title">ようこそ、Kawazへ!</h4>
</div>
<div class="modal-body">
<div class="alert alert-warning">
<p>このウィンドウはまだプロフィールを編集していないメンバーに表示されています</p>
<p>このウィンドウはまだプロフィールを設定していないメンバーに表示されています</p>
<p>他のメンバーと交流するために、必ずプロフィールを設定してください</p>
<p><a class="btn btn-lg btn-success" href="{% url "personas_profile_update" %}">今すぐ設定する</a></p>
</div>
Expand Down

0 comments on commit c864868

Please sign in to comment.