[PATCH] Add "Enable notifications" checkbox in "Add Comment" form

Eli Schwartz eschwartz at archlinux.org
Tue Oct 16 04:46:11 UTC 2018


On 10/16/18 12:26 AM, Vladimir Panteleev wrote:
>  				<input type="submit" value="<?= (isset($comment_id)) ? __("Save") : __("Add Comment") ?>" />
> +				<?php if (!isset($comment_id)): ?>

This should only appear if we've confirmed the current pkgbase does not
have notifications enabled.aa

> +					<span class="comment-enable-notifications">
> +						<input type="checkbox" name="enable_notifications" id="id_enable_notifications" <?= pkgbase_user_notify($uid, $base_id) ? "checked" : "" ?> />
> +						<label for="id_enable_notifications"><?= __("Enable notifications") ?></label>
> +					</span>
> +				<?php endif; ?>
>  			</p>
>  		</fieldset>
>  	</form>
> 


-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/aur-dev/attachments/20181016/c569791c/attachment.asc>


More information about the aur-dev mailing list