diff --git a/apprise_api/api/forms.py b/apprise_api/api/forms.py index 62ef47d..4844395 100644 --- a/apprise_api/api/forms.py +++ b/apprise_api/api/forms.py @@ -152,8 +152,9 @@ class NotifyForm(forms.Form): required=False, ) - # Allow support for tags keyword in addition to tag; the 'tag' field will always take priority over this - # however adding `tags` gives the user more flexibilty to use either/or keyword + # Allow support for tags keyword in addition to tag; the 'tag' field will + # always take priority over this however adding `tags` gives the user more + # flexibilty to use either/or keyword tags = forms.CharField( label=_('Tags'), widget=forms.HiddenInput(), diff --git a/apprise_api/api/templates/base.html b/apprise_api/api/templates/base.html index 60fe6d7..2ebe111 100644 --- a/apprise_api/api/templates/base.html +++ b/apprise_api/api/templates/base.html @@ -50,8 +50,10 @@
{{ key }}
- {% if not CONFIG_LOCK %}web{% else %}lock{% endif %} {%trans "Review" %}
- - announcement {%trans "Notifications" %}
+
- announcement {%trans "Notifications" %}{% if not CONFIG_LOCK %} {% endif %}
- {% blocktrans %}At this time, the administrator of this server has locked down all configuration. This means - That pre-created configuration is securely hidden for the purpose of notification transmission only. - - New configuration can not be set, and existing configuration can not be modified or viewed. - {% endblocktrans %}
-+ {% blocktrans %}At this time, the administrator of this server has locked down all configuration. This means + That pre-created configuration is securely hidden for the purpose of notification transmission only. + + New configuration can not be set, and existing configuration can not be modified or viewed. + {% endblocktrans %}
+- {% blocktrans %}The following command would cause apprise to directly notify all of your services:{% endblocktrans %} -
apprise --body="Test Message" \
- apprise{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/{{key}}/?tags=all
- {% blocktrans %}Send one or more attachments like this:{% endblocktrans %}
- apprise --body="Test Message" \
- apprise{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/{{key}}/?tags=all \
- --attach=/path/to/an/attachment.jpeg \
- --attach=https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png
-
-
- {% if not CONFIG_LOCK %}
-
- {% blocktrans %}The following command would cause apprise to retrieve the configuration loaded and
- send a test notification to all of your added services:{% endblocktrans %}
-
-
apprise --body="Test Message" --tag=all \
- --config={{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/get/{{key}}
- {% blocktrans %}You may also create an Apprise configuration file that contains this line somewhere in it:{% endblocktrans %}
- include {{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/get/{{key}}
- {% blocktrans %}By leveraging the include directive, it will automatically be referenced for future calls to the apprise
tool. All future calls using Apprise now simplify to:{% endblocktrans %}
- apprise --body="Test Message" --tag=all
-
-
- {% endif %}
- - {% blocktrans %}The following command would cause the apprise api to notify all of your services:{% endblocktrans %} -
curl -X POST \
- -F "body=Test Message" \
- -F "tags=all" \
- http{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/{{key}}
- {% blocktrans %}Send one or more attachments like this:{% endblocktrans %}
- curl -X POST \
- -F "tags=all" \
- -F "body=Test Message" \
- -F attach1=@Screenshot-1.png \
- -F attach2=@/my/path/to/Apprise.doc \
- http{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/{{key}}
- {% blocktrans %}Sends a notification to our endpoints with an attachment{% endblocktrans %}
-
- curl -X POST \
- -F "tag=all" \
- -F "attach=https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png" \
- "{{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/{{key}}"
-
- + {% blocktrans %}The following command would cause apprise to directly notify all of your services:{% endblocktrans %} +
apprise --body="Test Message" \
+ apprise{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/{{key}}/?tags=all
+ {% blocktrans %}Send one or more attachments like this:{% endblocktrans %}
+ apprise --body="Test Message" \
+ apprise{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/{{key}}/?tags=all \
+ --attach=/path/to/an/attachment.jpeg \
+ --attach=https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png
+
+
+ {% if not CONFIG_LOCK %}
+
+ {% blocktrans %}The following command would cause apprise to retrieve the configuration loaded and
+ send a test notification to all of your added services:{% endblocktrans %}
+
+
apprise --body="Test Message" --tag=all \
+ --config={{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/get/{{key}}
+ {% blocktrans %}You may also create an Apprise configuration file that contains this line somewhere in it:{% endblocktrans %}
+ include {{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/get/{{key}}
+ {% blocktrans %}By leveraging the include directive, it will automatically be referenced for future calls to the apprise
tool. All future calls using Apprise now simplify to:{% endblocktrans %}
+ apprise --body="Test Message" --tag=all
+
+
+ {% endif %}
+ + {% blocktrans %}The following command would cause the apprise api to notify all of your services:{% endblocktrans %} +
curl -X POST \
+ -F "body=Test Message" \
+ -F "tags=all" \
+ http{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/{{key}}
+ {% blocktrans %}Send one or more attachments like this:{% endblocktrans %}
+ curl -X POST \
+ -F "tags=all" \
+ -F "body=Test Message" \
+ -F attach1=@Screenshot-1.png \
+ -F attach2=@/my/path/to/Apprise.doc \
+ http{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/{{key}}
+ {% blocktrans %}Sends a notification to our endpoints with an attachment{% endblocktrans %}
+
+ curl -X POST \
+ -F "tag=all" \
+ -F "attach=https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png" \
+ "{{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/{{key}}"
+