Compare commits

..

42 Commits

Author SHA1 Message Date
04f2e8eb28 Name CAAT as the client 2019-09-06 11:17:12 +02:00
d97b124a79 Rename images and add "alt" tag 2019-09-06 10:24:40 +02:00
1ad7a4368d Further edits 2019-09-05 09:26:07 +02:00
f1d93b1719 Bump Ruby version 2019-09-05 09:26:01 +02:00
4aaeac1f07 Additional proof tweaks 2019-09-03 18:42:35 +01:00
7220ee6178 Proofed original text and added some corrections 2019-09-03 18:39:44 +01:00
3fce3c1a7a New blog post about CiviCRM mailing 2019-08-31 22:36:09 +02:00
5832ee4b12 Add missing bundle install command 2019-08-31 22:35:07 +02:00
4983b916c7 Fix another typo 2019-07-16 10:49:38 +02:00
665a3690b1 Fix typo on "Services" page 2019-07-16 10:49:38 +02:00
7584dc796e Attempt a newer Ruby 2019-06-06 00:45:09 +00:00
5502122e21 Try using new Debian distro 2019-06-06 00:42:54 +00:00
b056420f9e Merge branch 'new_email' into 'master'
Update email address

See merge request autonomic-cooperative/autonomic-cooperative.gitlab.io!22
2019-06-03 19:05:05 +00:00
0564bec241 Update email address 2019-05-26 01:07:38 +01:00
186bc4f373 Update PGP key 2019-02-09 10:11:05 -05:00
7d9b81b324 Added note that CONTRIBUTING.md may be out of date 2018-11-21 15:04:35 +00:00
a50249fe22 Improved wording of description of CI in README 2018-11-21 15:03:06 +00:00
9443912519 Merge branch 'master' of gitlab.com:autonomic-cooperative/autonomic-cooperative.gitlab.io 2018-11-21 01:42:11 +00:00
9c4166e573 Updated README to reflect our new CI setup 2018-11-21 01:41:43 +00:00
39c391e803 Merge branch 'add-cotech-link' into 'master'
Added link to CoTech website to CoTech logo in footer

See merge request autonomic-cooperative/autonomic-cooperative.gitlab.io!21
2018-11-08 12:45:29 +00:00
33add8fd8f Added link to CoTech website to CoTech logo in footer 2018-11-05 23:48:21 +00:00
1f3ada29d7 Rsync recursive 2018-08-21 18:51:21 +01:00
442d758cb4 Don't use rsync archive option 2018-08-21 18:48:07 +01:00
b0a959e2e4 Don't set times 2018-08-21 18:44:40 +01:00
bdea07164d Change menu text colour 2018-08-21 18:43:39 +01:00
cf4f1fbd46 Rename dist to public 2018-08-21 18:40:18 +01:00
81a96fbf34 Run ssh-agent 2018-08-21 18:33:22 +01:00
eec8b982eb Disable strict host key checking 2018-08-21 18:26:50 +01:00
9ed30e8717 Add autonomic.zone to known hosts 2018-08-21 18:22:43 +01:00
f675143d59 apt-get update 2018-08-21 18:15:26 +01:00
bbea557322 Install rsync 2018-08-21 18:11:20 +01:00
c23bf3f8d9 Merge branch 'master' of gitlab.com:autonomic-cooperative/autonomic-cooperative.gitlab.io 2018-08-21 18:10:40 +01:00
d51f265fd5 design shite 2018-08-21 18:10:29 +01:00
4e1d28ece6 Deploy to server on master commit 2018-08-21 18:07:09 +01:00
96384a91ea add cotect logo (closes #42) 2018-08-21 17:32:40 +01:00
43559560e8 add postal address (closes #41) 2018-08-21 17:12:59 +01:00
bc9b85e23b Add dates to blog and home (closes #46) 2018-08-21 16:35:38 +01:00
bbeff69a10 Revert "change ruby version gemfile"
This reverts commit 8293415fbd.
2018-08-21 16:35:07 +01:00
8293415fbd change ruby version gemfile 2018-08-21 16:28:23 +01:00
3c3fe48672 Delete 2018-01-11-spectre-and-meltdown.md 2018-08-10 15:26:18 +00:00
f8c9d7bf10 Merge branch 'spectre-blog-post' into 'master'
Spectre blog post

See merge request autonomic-cooperative/autonomic-cooperative.gitlab.io!20
2018-01-14 22:45:59 +00:00
8ad7fd5fed Spectre blog post 2018-01-14 22:45:58 +00:00
24 changed files with 379 additions and 297 deletions

View File

@ -1,28 +1,21 @@
image: ruby:2.4.2 image: ruby:2.4
stages: stages:
- build
- deploy - deploy
build:
stage: build
before_script:
- gem install jekyll
script:
- jekyll build -d public
artifacts:
paths:
- public
deploy: deploy:
stage: deploy stage: deploy
before_script: before_script:
- apt-get update -y
- apt-get -y install rsync
- gem install jekyll - gem install jekyll
- eval $(ssh-agent -s)
script: script:
- jekyll build -d public - jekyll build -d public
- ./bin/deploy - ssh-add <(echo "$SSH_PRIVATE_KEY")
- rsync -rvz --delete -e 'ssh -o StrictHostKeyChecking=no' ./public/ "$SERVER_USER"@autonomic.zone:/var/www/autonomic.zone/html/
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- tags - master

View File

@ -1,5 +1,7 @@
# Contributing # Contributing
### Not that these instructions may be out of date. If you find any quirks that aren't described in this file, please make patches.
# What Is Jekyll # What Is Jekyll
For those unfamiliar with how Jekyll works, check out [jekyll.rb] for all the For those unfamiliar with how Jekyll works, check out [jekyll.rb] for all the
@ -36,6 +38,7 @@ Then you can get your Ruby dependencies installed with:
``` bash ``` bash
$ gem install jekyll bundler $ gem install jekyll bundler
$ bundle install
``` ```
# Serve Website # Serve Website

View File

@ -1,3 +1,3 @@
source "https://rubygems.org" source "https://rubygems.org"
ruby '2.4.2' ruby '2.4.7'
gemspec gemspec

View File

@ -2,58 +2,28 @@
# autonomic-cooperative.gitlab.io # autonomic-cooperative.gitlab.io
A [Jekyll] based site for the Autonomic Cooperative. A [Jekyll] based site for the Autonomic Cooperative. The site is based on the [spectral-jekyll-theme] template.
The template is based on the [spectral-jekyll-theme]. We use [autonomic.zone] for production. We used to use [autonomic-cooperative.gitlab.io] as staging but this isn't really needed anymore.
We use [autonomic.zone] for production and [autonomic-cooperative.gitlab.io] for staging.
[Jekyll]: https://jekyllrb.com/ [Jekyll]: https://jekyllrb.com/
[spectral-jekyll-theme]: https://github.com/andrewbanchich/spectral-jekyll-theme [spectral-jekyll-theme]: https://github.com/andrewbanchich/spectral-jekyll-theme
[autonomic.zone]: https://autonomic.zone/ [autonomic.zone]: https://autonomic.zone/
[autonomic-cooperative.gitlab.io]: http://autonomic-cooperative.gitlab.io/ [autonomic-cooperative.gitlab.io]: http://autonomic-cooperative.gitlab.io/
# Contribute # Make a change
Please see [CONTRIBUTING.md] for the juicy details. Work on features in branches. If you commit to master, open a merge request from your branch unless it is a tiny change. Our [deploy] CI stage will push any changes on master branch to [autonomic.zone].
[CONTRIBUTING.md]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/blob/master/CONTRIBUTING.md
# Make A New Release
Please add a new [change log] entry. This helps us track released changes easily.
[change log]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/blob/master/CHANGELOG.md
Then, [tag a new commit] and send it upstream with:
[tag a new commit]: https://git-scm.com/book/en/v2/Git-Basics-Tagging
[semantic versioning]: http://semver.org/
```bash
$ COMMIT=$(git rev-parse HEAD)
$ TAG=6.6.6 # enter your new tag
$ git tag -a $TAG $COMMIT
$ git push upstream master --tags
```
You can also use the [Gitlab tags UI] for this.
[Gitlab tags UI]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/tags
Our [deploy] CI stage will push the new site to [the production branch].
[deploy]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/blob/d16aec42bd2ddd7449f55d9f06b03499cc660b22/.gitlab-ci.yml#L17 [deploy]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/blob/d16aec42bd2ddd7449f55d9f06b03499cc660b22/.gitlab-ci.yml#L17
[the production branch]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/tree/production
Watch the [CI/CD pipeline] to see that it builds successfully. Watch the [CI/CD pipeline] to see that it builds successfully.
[CI/CD pipeline]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/pipelines [CI/CD pipeline]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/pipelines
Then head over to [fullyautomatedluxuryinfrastructure] and run:
[fullyautomatedluxuryinfrastructure]: https://gitlab.com/autonomic-cooperative/fullyautomatedluxuryinfrastructure # Contribute
``` bash Please see [CONTRIBUTING.md] for the juicy details. It may need to be updated so please submit patches if you discover some quirk!
$ ansible-playbook orgs/autonomic/gitlabpages.yml
``` [CONTRIBUTING.md]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/blob/master/CONTRIBUTING.md

View File

@ -1,26 +0,0 @@
#!/bin/bash
GITUSERNAME="autonomicgitlabci"
GITUSEREMAIL="autonomicgitlabci@nowhere.com"
DEPLOYSCRIPT="https://github.com/X1011/git-directory-deploy/raw/master/deploy.sh"
export GIT_DEPLOY_DIR="public"
export GIT_DEPLOY_BRANCH="production"
export GIT_DEPLOY_REPO="git@gitlab.com:autonomic-cooperative/autonomic-cooperative.gitlab.io.git"
apt-get update -y
apt-get install -yqq wget openssh-client
wget $DEPLOYSCRIPT && chmod +x deploy.sh
git config --global user.email $GITUSEREMAIL
git config --global user.name $GITUSERNAME
mkdir -p ~/.ssh
eval "$(ssh-agent -s)"
ssh-add <(echo "$SSH_PRIVATE_KEY")
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
./deploy.sh -m "Git tag: $(git describe --exact-match HEAD)"
rm -Rfv .ssh

View File

@ -6,6 +6,7 @@
<div class="image">{% if post.image %}<img src="{% if site.featured-image-source %}{{ post.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ post.image }}{% endif %}" alt="" />{% endif %}</div> <div class="image">{% if post.image %}<img src="{% if site.featured-image-source %}{{ post.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ post.image }}{% endif %}" alt="" />{% endif %}</div>
<div class="content"> <div class="content">
<h2><a href="{{ post.url | relative_url }}" class="link">{{ post.title }}</a></h2> <h2><a href="{{ post.url | relative_url }}" class="link">{{ post.title }}</a></h2>
<p class="h5">{{ post.date | date: '%B %d, %Y' }}</p>
<p>{{ post.description }}</p> <p>{{ post.description }}</p>
</div> </div>
</section> </section>

View File

@ -3,7 +3,7 @@
<header class="major"> <header class="major">
<h2>Get in Touch</h2> <h2>Get in Touch</h2>
<p>Contact us to discuss your project's needs and arrange a consultation.</p> <p>Contact us to discuss your project's needs and arrange a consultation.</p>
<p><a href="mailto:autonomic-coop@posteo.net">autonomic-coop@posteo.net</a></p> <p><a href="mailto:helo@autonomic.zone">helo@autonomic.zone</a></p>
<p> <p>
If you use encrypted email, here is our <a href="{{ "/assets/pgp/autonomic-key.asc" | relative_url }}">PGP key</a>. If you use encrypted email, here is our <a href="{{ "/assets/pgp/autonomic-key.asc" | relative_url }}">PGP key</a>.
Our key fingerprint is: <br/><code id="fingerprint">82FC 87C5 1A71 902F DC10 2CF5 4F90 D55B B24B 1147</code> Our key fingerprint is: <br/><code id="fingerprint">82FC 87C5 1A71 902F DC10 2CF5 4F90 D55B B24B 1147</code>

View File

@ -14,6 +14,13 @@
<ul class="copyright"> <ul class="copyright">
<li class="icon fa-creative-commons">&nbsp;{{ site.title }}</li> <li class="icon fa-creative-commons">&nbsp;{{ site.title }}</li>
</ul> </ul>
<address>
Autonomic Co-operative</br>
1539 Pershore Road </br>
Stirchley</br>
B30 2JH
</address>
</footer> </footer>
</div> </div>

View File

@ -0,0 +1,5 @@
<section class="wrapper style5 special compressed">
<a href="https://www.coops.tech/" target="_blank">
<img src="/assets/images/Member-of-CoTech-logo-200.png" alt="Member of Co-Tech"/>
</a>
</section>

View File

@ -30,7 +30,7 @@
<h3>Cloud Storage and Collaboration</h3> <h3>Cloud Storage and Collaboration</h3>
<p> <p>
<a href="https://sandstorm.io/">Sandstorm</a> is a personal "cloud <a href="https://sandstorm.io/">Sandstorm</a> is a personal "cloud
in a box" , designed with the upmost security in mind. It allows you to in a box" , designed with the utmost security in mind. It allows you to
deploy apps for file-storage, collaborative document editing, deploy apps for file-storage, collaborative document editing,
calendars, to-do lists and much more. calendars, to-do lists and much more.
</p> </p>
@ -71,7 +71,7 @@
<p> <p>
A grounded and principled understanding of the cybersecurity domain can ensure A grounded and principled understanding of the cybersecurity domain can ensure
your organisation is not liable to any unwanted security threats. We provide your organisation is not liable to any unwanted security threats. We provide
structured training taliored to your threat model. structured training tailored to your threat model.
</p> </p>
</li> </li>
</ul> </ul>

View File

@ -9,6 +9,7 @@
{% include services.html %} {% include services.html %}
{% include contact.html %} {% include contact.html %}
{% include footer.html %} {% include footer.html %}
{% include membership-footer.html %}
{% include foot-scripts.html %} {% include foot-scripts.html %}
</body> </body>
</html> </html>

View File

@ -7,8 +7,8 @@
<div id="main"> <div id="main">
<header> <header>
{% if page.image %} {% if page.image %}
<div <div
class="header-image" class="header-image"
style="background-image: url('{% if site.featured-image-source %}{{ page.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ page.image }}{% endif %}');"></div> style="background-image: url('{% if site.featured-image-source %}{{ page.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ page.image }}{% endif %}');"></div>
{% endif %} {% endif %}
@ -35,6 +35,7 @@
{{ item.title }} {{ item.title }}
{% if item.layout %}</a>{% endif %} {% if item.layout %}</a>{% endif %}
</h2> </h2>
<p class="h5">{{ item.date | date: '%B %d, %Y' }}</p>
<p>{{ item.description }}</p> <p>{{ item.description }}</p>
</div> </div>
</section> </section>

View File

@ -2,7 +2,7 @@
layout: post layout: post
title: Our Founding Principles title: Our Founding Principles
description: Autonomic Co-operative And Our Core Values description: Autonomic Co-operative And Our Core Values
image: thinkpad.jpg image: pic01.jpg
category: values category: values
date: 2017-10-03 date: 2017-10-03
--- ---

View File

@ -1,150 +0,0 @@
---
layout: post
title: Spectre and Meltdown
description: A Spectre Is Haunting Our Processors...
image: spectre.jpg
category: values
date: 2018-01-11
---
Autonomic have now completed the process of applying patches to to all
of our servers in response to the so called Spectre and Meltdown
vulnerabilities. Our upstream providers have also confirmed that they have
patched their infrastructure. We will monitor the situation as it develops.
We are currently super busy with clients so we decided to repost the
excellent security bulletin from our friends over at [Rise Up](https://riseup.net/)
which goes into detail oh how to update various operating systems. All credit
to them for the rest of this blog post.
## The Facts
As you have probably read, there are three related security problems in
contemporary CPUs. These vulnerabilities open the potential for a
nefarious program to steal passwords, secrets, and personal information
from you computer, even if the program is just Javascript loaded from a
web site you visit. These vulnerabilities are as serious as they sound,
and you should take action to upgrade your software.
* The first flaw, called "Meltdown," affects nearly all Intel CPUs and
has been fixed with updates to most operating systems.
* The two other flaws, called "Spectre," apply to nearly all CPUs built
in the last 20 years, not just Intel, although they are more difficult
to exploit. There are no permanent fixes for Spectre available at this
time, although if you update your software you will make these attacks
much less likely.
You should take *both* these steps now, for all your devices:
* Upgrade your web browser (see below). These fixes make the new
attacks against CPUs more much difficult.
* Upgrade your operating system. There are updates available for
Windows, macOS, and GNU/Linux that fix the Meltdown vulnerability for
Intel CPUs and provide some mitigations for Spectre. Additionally, new
releases of iOS and Android have mitigations for Spectre.
Better fixes will continue to arrive in the next weeks/months for your
operating system and software. Please keep your system up to date!
## Browsers
By updating your browser, you can make it significantly harder for an
attacker to steal secrets off your computer using Javascript loaded from
a web site you visit.
Firefox version 57.0.4 and later [includes mitigation measures](https://www.mozilla.org/en-US/security/advisories/mfsa2018-01/)
against Spectre attack.
Edge has been updated to include Spectre migitations. When you apply the
latest Windows update, you will get the new version of Edge.
Safari will be updated very soon, according to Apple. Check the App
Store updates.
Chrome will include Spectre mitigations starting with version 64, to be
released Jan 23. In the mean time, you can change your configuration to
greatly mitigate [against the Spectre vulnerability by enabling](https://support.google.com/chrome/answer/7623121?hl=en)
"site isolation."
Additionally, please see [Rise Up's better browsing guide](https://riseup.net/en/better-web-browsing) for
instructions on best practices for securing your web experience (which
will also help mitigate against these new attacks).
## Windows
For Windows 10, you must first upgrade any anti-virus software before
upgrading Windows. [Failure to do so may make your computer stop working](http://www.theregister.co.uk/2018/01/04/microsoft_windows_patch_meltdown/).
To upgrade Windows 10:
```
Select the Start button, and then go to Settings > Update & security > Windows Update, and select Check for updates.
```
Now is a good time to enable automatic updates:
```
Select the "Start" button, then select "Settings" > "Update & security" > "Windows Update" > "Advanced options"
and then under "Choose how updates are installed", select "Automatic (recommended)".
```
If you are running Windows 7 or 8, an update is also available.
## macOS
If you already have macOS version 10.13.2 then you are [protected against Meltdown](https://support.apple.com/en-us/HT208394).
Otherwise, to upgrade macOS:
```
Open the App Store app on your Mac. Click "Updates" in the App Store toolbar, then use the "Update" buttons
to download and install any updates listed.
```
Now is a good time to check enable automatic updates:
```
Select the Apple menu, then select "System Preferences" > "App Store" > "Automatically check for updates".
```
Apple plans to soon release an update to Safari browser to provide some
mitigation against Spectre.
## iOS
Apple has said that iOS is affected by Spectre, and an update to
mitigate against most of the new attacks has been released. If you have
iOS version 11.2 or later, [then you are good](https://support.apple.com/en-us/HT208394).
To check for new updates, go to `Settings > General > Software Update.`
## Android
The bad news is that Android is vulnerable to Spectre and unless you
have a Google-branded phone or run a custom firmware you might not get
an update for months, if ever. However, the consensus among security
researchers at the moment is that the Spectre attack is difficult enough
that there are probably easier ways to compromise an Android device.
Yeah?
There is one thing you can do now to make your Android device more safe
against these new CPU attacks:
* Turn on ["site isolation" in Chrome](https://support.google.com/chrome/answer/7623121?hl=en)
* Upgrade Chrome Browser after Jan 23.
* Alternately, use Firefox for Android.
## Debian/Ubuntu GNU/Linux
Run "Software Center" or "Software Updater."
Alternately, open a terminal and type:
```
sudo apt update
sudo apt upgrade
sudo reboot
```
## Fedora GNU/Linux
Open a terminal and type:
```
sudo dnf --refresh update kernel
sudo reboot
```

View File

@ -0,0 +1,129 @@
---
layout: post
title: CiviCRM AngularJS extension
description: Adding custom validation to the CiviCRM Mailing form
image: civicrm_validation_header.jpg
category: howto
date: 2019-08-30
---
We support [Campaign Against Arms Trade](https://caat.org.uk), a right-on group
that works to end the international arms trade, with their technology &ndash;
including CiviCRM](https://civicrm.org/), a popular open source
"constituent relationship management" platform.
Among other things, CAAT uses CiviCRM's "Mailing" features to send out emails to
their supporters, and they told us that they're experiencing an annoying bug: if
a user sends out a mailing with the same name (not subject line, just the
internal identifier 🙄) as an existing one, it'll cause the CRM to freeze up
elsewhere.
As an added challenge, the mailing features of CiviCRM [now use
AngularJS](https://docs.civicrm.org/dev/en/latest/framework/angular/) following
a recent rebuild by the developers, and there aren't many tutorials or examples
out there to customise it. Luckily, the CiviCRM developer community was
super-helpful, and we managed to sort out some in-form validation to prevent
duplicate mailing names for our client&hellip; and now for you, too!
## Create a new extension
Using [`civix`](https://github.com/totten/civix), we set up a new CiviCRM extension for our code:
civix generate:module mailing
(We called our extension `mailing`, because our creative director was occupied
with an Art at the time)
Our client sensibly keeps their custom CiviCRM extensions in `git`, so at this
stage we initialised a repository, added the boilerplate template code, and
pushed.
## Set up the AngularJS hook
A function called `mailing_civicrm_alterAngular()` will get executed whenever
an AngularJS page loads, and you can use a `ChangeSet` to edit an AngularJS
template. Because AngularJS templates specify form logic, this also lets you
change the validation behaviour. Our hook function looks like this:
function mailing_civicrm_alterAngular($angular) {
$changeSet = \Civi\Angular\ChangeSet::create('mailing_name_unique')
->alterHtml('~/crmMailing/BlockSummary.html', function(phpQueryObject $doc) {
// name validation
$doc->find('.crm-group:has([crm-ui-id="subform.mailingName"])')->attr('ng-controller', 'NameValidateCtrl');
$doc->find('[crm-ui-id="subform.mailingName"]')->attr('ng-blur', 'validateName(mailing, \'name\')');
$doc->find('[crm-ui-id="subform.mailingName"]')->attr('crm-ui-validate', 'isValid');
});
$angular->add($changeSet);
CRM_Core_Resources::singleton()->addScriptFile('mailing', 'js/disallow-duplicate-names.js');
}
Setting `crm-ui-validate` to `validateName` directly fired the event _way_ too
many times, so instead `validateName` is only called when focus leaves the
field, `ng-blur`, which then sets the `isValid` variable that's checked by
`crm-ui-validate`.
## Create the `validateName` function
Then, the code which queries the CiviCRM API to check for mailings with
duplicate names:
var validating = false;
(function(angular, $) {
var crmMailing = angular.module('crmMailing');
crmMailing.controller('NameValidateCtrl', function($scope) {
$scope.isValid = false;
$scope.validateName = function(mailing, field) {
if (!validating) {
validating = true;
CRM.api3('Mailing', 'get', {
"sequential": 1,
"name": mailing[field],
"id": {"!=": mailing.id}
}).then(function(result) {
// do something with result
if (result.count > 0 ) {
$scope.isValid = false;
CRM.alert(ts('There is already a mailing with this name; sending this one will crash CiviCRM!'));
} else {
$scope.isValid = true;
}
}, function(error) {
// oops
console.log(error);
});
validating = false;
}
};
});
})(angular, CRM.$);
(saved as `js/disallow-duplicate-names.js`)
## Conclusion
Activate the extension, e.g. with `cv`
$ cv en mailing
Now, open a mailing and try to give it the same name as an existing one &ndash; you
should see the field border turn red, and you'll be prevented from continuing or
sending the mailing:
!["Mailing name" field showing the field with a red border and red label](/assets/images/2019-08-30_civicrm_validation.png)
(As a bonus, the extension also sends a notification to the user using
`CRM.alert` to explain the error)
It does seem like a red border sometimes hangs around the field label even after
the value is valid again&hellip; but apart from that, the feature is working great!
Lastly, props to CAAT for being a great member of the CiviCRM community and
supporting us writing this post to share our work with y'all.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

@ -11,54 +11,183 @@ LpJpzYHzNYZ8/rt90sAv6txFFNbxqVSTsgQcGvZEkQKztVjyZj7Yqlez42RhUCmW
SihMVDa6x0J2i4NKUkTbAkHuhJEdqes1Yd2PJiQ8iv7IyLjoXRSAcTWaLSnLo5Dn SihMVDa6x0J2i4NKUkTbAkHuhJEdqes1Yd2PJiQ8iv7IyLjoXRSAcTWaLSnLo5Dn
klnz+t2BJmuO5MJdtOuzqrMeO8yTZCMXPaBgqz2cWeKWNXKWh6Slr4jrdTZ4ea+F klnz+t2BJmuO5MJdtOuzqrMeO8yTZCMXPaBgqz2cWeKWNXKWh6Slr4jrdTZ4ea+F
/79CGK2GXC4wPKw2xhKDBvXhxr4T1ZrlQ7ISUi9q/Fm771pvMfGBUDxHGwARAQAB /79CGK2GXC4wPKw2xhKDBvXhxr4T1ZrlQ7ISUi9q/Fm771pvMfGBUDxHGwARAQAB
tCxBdXRvbm9taWMgQ29vcGVyYXRpdmUgPGF1dG9ub21pY0Bwb3N0ZW8ubmV0PokC tDJBdXRvbm9taWMgQ28tb3BlcmF0aXZlIDxhdXRvbm9taWMtY29vcEBwb3N0ZW8u
VAQTAQgAPhYhBIL8h8UacZAv3BAs9U+Q1VuySxFHBQJZseOEAh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IRLx9U9jZUgY4Mk6R7+zAw5dpSDOtEoXryXnuKYhbqdvTNrNBiBCXST7RghyWzg
BwFXq2LO38nvlrOKlkiJwoyDKfo9peVWBoaIGEYc3LFMVeQf/CYZa9Rsmziewjkn
fmUbYSajrvwxLDvLjUXF7ddzBLR7R3WMS5aIL8bbEjauwLzYWFBXROaToCHzvMlr
SpUmEvpzUNofyp2lKLYUH2XWiYTiN/3h6bkLlpFwNgDjiZ9FsajIfNaF33Yvhd5o
NDcPxgNphhsqh4DiZ24ZV1M3vb+Prfgvy0tV4yEaVN9iXVsmrl/e/CVxgqW4qRoK
HOroRp2ssNoCL6Jt2jhinsoTdaFPVLhTRlG9sBf59gOcglkcH9RyVI+UNF0WdtNa
ciqCCBmat2lRide/yWAVRM7r/4ENVYDnYpGlbcrORM0FzY0b4qNhlVhQ+gITJ8zS
KfX2KynIZziOG4TboGB5cR6QF7nGDEOSiNz8jGnBnxvFyb6z4XTpJsT/e4lcm0J1
NNlVznU46EHg88s0aD4a47beMyZ1XoIO4DVYN9Qn2H771xVi6oZ0rJJ4c4FYxl/4
AhF2loFrCEnlZw==
=u0eg
-----END PGP PUBLIC KEY BLOCK----- -----END PGP PUBLIC KEY BLOCK-----

View File

@ -107,6 +107,7 @@ h4 {
h5 { h5 {
font-size: 0.8em; font-size: 0.8em;
line-height: 1.5em; line-height: 1.5em;
font-style: italic;
} }
.h6, .h6,
@ -232,4 +233,4 @@ header {
display: none; display: none;
} }
} }
} }

View File

@ -54,7 +54,7 @@
> a { > a {
border: 0; border: 0;
color: inherit; color: black;
display: block; display: block;
font-size: 0.8em; font-size: 0.8em;
letter-spacing: _size(letter-spacing-alt); letter-spacing: _size(letter-spacing-alt);

View File

@ -11,7 +11,7 @@
color: _palette($p, fg-bold); color: _palette($p, fg-bold);
} }
.h2, .h3, .h4, .h5, .h6, .h2, .h3, .h4, .h5, .h6,
h2, h3, h4, h5, h6 { h2, h3, h4, h5, h6 {
color: _palette($p, fg-bold); color: _palette($p, fg-bold);
@ -210,6 +210,14 @@
padding: 0; padding: 0;
} }
&.compressed {
padding: 0.5em 0 0;
img {
max-width: 150px;
}
}
&.style1 { &.style1 {
@include wrapper(accent1); @include wrapper(accent1);
} }
@ -229,7 +237,7 @@
&.style5 { &.style5 {
@include wrapper(accent2); @include wrapper(accent2);
} }
&.style6 { &.style6 {
@include wrapper(accent4); @include wrapper(accent4);
} }
@ -241,4 +249,4 @@
@include breakpoint(small) { @include breakpoint(small) {
@include padding(3em, 2em); @include padding(3em, 2em);
} }
} }

View File

@ -50,7 +50,7 @@
border2: rgba(0,0,0,0.25), border2: rgba(0,0,0,0.25),
border2-bg: rgba(255,255,255,0.2) border2-bg: rgba(255,255,255,0.2)
), ),
accent2: ( accent2: (
bg: #ffffff, bg: #ffffff,
fg-bold: #2E3842, fg-bold: #2E3842,
@ -72,7 +72,7 @@
border2: rgba(0,0,0,0.25), border2: rgba(0,0,0,0.25),
border2-bg: rgba(255,255,255,0.2) border2-bg: rgba(255,255,255,0.2)
), ),
accent4: ( accent4: (
bg: #25558C, bg: #25558C,
fg-bold: #ffffff, fg-bold: #ffffff,
@ -82,5 +82,16 @@
border-bg: rgba(255,255,255,0.075), border-bg: rgba(255,255,255,0.075),
border2: rgba(0,0,0,0.25), border2: rgba(0,0,0,0.25),
border2-bg: rgba(255,255,255,0.2) border2-bg: rgba(255,255,255,0.2)
) ),
);
accent5: (
bg: #e2e2e2,
fg-bold: #ffffff,
fg: mix(#F3A712, #ffffff, 25%),
fg-light: mix(#F3A712, #ffffff, 40%),
border: rgba(0,0,0,0.125),
border-bg: rgba(255,255,255,0.075),
border2: rgba(0,0,0,0.25),
border2-bg: rgba(255,255,255,0.2)
),
);

View File

@ -126,15 +126,15 @@ body.is-mobile {
/* Footer */ /* Footer */
#footer { #footer {
@include padding(6em, 0); padding: 4em 0 3.5em;
background-color: darken(_palette(bg), 8); background-color: darken(_palette(bg), 8);
text-align: center; text-align: center;
color: rgba(255, 255, 255, 0.7);
.icons { .icons {
font-size: 1.25em; font-size: 1.25em;
a { a {
color: _palette(fg-light);
&:hover { &:hover {
color: _palette(fg); color: _palette(fg);
@ -143,7 +143,6 @@ body.is-mobile {
} }
.copyright { .copyright {
color: _palette(fg-light);
font-size: 0.8em; font-size: 0.8em;
letter-spacing: _size(letter-spacing-alt); letter-spacing: _size(letter-spacing-alt);
list-style: none; list-style: none;