Skip to content
Permalink
Browse files

Minor fixes for Namecheap updates

  • Loading branch information...
chrismaddalena committed Oct 2, 2019
1 parent d333e97 commit ce10673b9e64af046e099692c87d4946363ce9dc
Showing with 34 additions and 27 deletions.
  1. +10 −3 .envs_template/.production/.django
  2. +24 −24 ghostwriter/shepherd/templates/shepherd/update.html
@@ -30,12 +30,10 @@ COMPRESS_ENABLED=
# ------------------------------------------------------------------------------
WEB_CONCURRENCY=4


# Redis
# ------------------------------------------------------------------------------
REDIS_URL=redis://redis:6379/0


# QCluster
# ------------------------------------------------------------------------------
QCLUSTER_NAME=soar
@@ -58,4 +56,13 @@ SLACK_URL=https://hooks.slack.com/services/<your_webhook_url>
# ------------------------------------------------------------------------------
COMPANY_NAME=Ghostwriter
COMPANY_TWITTER=@ghostwriter
COMPANY_EMAIL=info@ghostwriter.local
COMPANY_EMAIL=info@ghostwriter.local

# Namecheap
# ------------------------------------------------------------------------------
NAMECHEAP_ENABLE=False
NAMECHEAP_API_KEY=
NAMECHEAP_USERNAME=
NAMECHEAP_API_USERNAME=
CLIENT_IP=
NAMECHEAP_PAGE_SIZE=100
@@ -21,33 +21,33 @@
<h2>Domain Update Control Panel</h2>

<!-- Domain Library Update Section -->
<h6><i class="fas fa-cloud-download-alt"></i> Pull Domains from Namecheap</h6>
<hr>

<p>The domain library sync with Mamecheap was last requested on:</p>
<p style="font-size: 20px; padding: 10 10 10 10">
<strong>{{ namecheap_last_update_requested }}</strong>
</p>

{% if namecheap_last_update_completed %}
{% if namecheap_last_update_completed == 'Failed' %}
<p>Request Status: <span class="badge badge-pill badge-danger">{{ namecheap_last_update_completed }}</span></p>
{% if cat_last_result %}
<div style="border: 1px solid black;width: 50%; margin: 0 auto; border-radius: 5px; background-color: #f1f1f1">
<strong>Error: </strong>
<em style="color: red">
{{ namecheap_last_result }}
</em>
</div>
{% endif %}
{% else %}
{% if namecheap_last_update_completed %}
<p>Request Status: <span class="badge badge-pill badge-success">Completed on {{ namecheap_last_update_completed }} in {{ namecheap_last_update_time }} minutes</span></p>
{% if enable_namecheap %}
<h6><i class="fas fa-cloud-download-alt"></i> Pull Domains from Namecheap</h6>
<hr>

<p>The domain library sync with Namecheap was last requested on:</p>
<p style="font-size: 20px; padding: 10 10 10 10">
<strong>{{ namecheap_last_update_requested }}</strong>
</p>

{% if namecheap_last_update_completed %}
{% if namecheap_last_update_completed == 'Failed' %}
<p>Request Status: <span class="badge badge-pill badge-danger">{{ namecheap_last_update_completed }}</span></p>
{% if cat_last_result %}
<div style="border: 1px solid black;width: 50%; margin: 0 auto; border-radius: 5px; background-color: #f1f1f1">
<strong>Error: </strong>
<em style="color: red">
{{ namecheap_last_result }}
</em>
</div>
{% endif %}
{% else %}
{% if namecheap_last_update_completed %}
<p>Request Status: <span class="badge badge-pill badge-success">Completed on {{ namecheap_last_update_completed }} in {{ namecheap_last_update_time }} minutes</span></p>
{% endif %}
{% endif %}
{% endif %}
{% endif %}

{% if enable_namecheap %}
<form action="{% url 'shepherd:update_namecheap' %}" method="POST">
{% csrf_token %}
<input type="hidden" id="user_id" name="user_id" value='{{ user.get_username }}'>

0 comments on commit ce10673

Please sign in to comment.
You can’t perform that action at this time.