Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Update release script to correctly update tag named latest (which points to latest version) | #!/bin/sh
VERSION=$(/usr/libexec/PlistBuddy SwiftiumKit/Info.plist -c "print CFBundleShortVersionString")
TAG=v$VERSION
echo "Have you updated the changelog for version $VERSION ? (ctrl-c to go update it)"
read
set -e
carthage build --no-skip-current && carthage archive SwiftiumKit
echo "Creating tag $TAG and pus... | #!/bin/sh
VERSION=$(/usr/libexec/PlistBuddy SwiftiumKit/Info.plist -c "print CFBundleShortVersionString")
TAG=v$VERSION
echo "Have you updated the changelog for version $VERSION ? (ctrl-c to go update it)"
read
set -e
carthage build --no-skip-current && carthage archive SwiftiumKit
echo "Creating tag $TAG and pus... |
Use the variable in the scan-build install script. | #!/bin/sh -x
CLANG_CHECKER_NAME=checker-278
cd ~
if [ ! -d checker-278 ]
then
curl http://clang-analyzer.llvm.org/downloads/checker-278.tar.bz2 -o ~/$CLANG_CHECKER_NAME.tar.bz2
tar -xf ~/$CLANG_CHECKER_NAME.tar.bz2
fi
export SCAN_BUILD_PATH=~/$CLANG_CHECKER_NAME/bin/scan-build
export PATH=$PATH:$SCAN_BUILD_PATH... | #!/bin/sh -x
CLANG_CHECKER_NAME=checker-278
cd ~
if [ ! -d ~/$CLANG_CHECKER_NAME ]
then
curl http://clang-analyzer.llvm.org/downloads/$CLANG_CHECKER_NAME.tar.bz2 -o ~/$CLANG_CHECKER_NAME.tar.bz2
tar -xf ~/$CLANG_CHECKER_NAME.tar.bz2
fi
export SCAN_BUILD_PATH=~/$CLANG_CHECKER_NAME/bin/scan-build
cd -
|
Update uhub in test script | #!/usr/bin/env bash
set -eo pipefail
IFS=$'\n\t'
UHUB_VERSION=2.5.1
# Download Uhub
if [ "$(uname)" == "Darwin" ]; then
UHUB_NAME=uhub_darwin_amd64
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
UHUB_NAME=uhub_linux_amd64
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
UHUB_NA... | #!/usr/bin/env bash
set -eo pipefail
IFS=$'\n\t'
UHUB_VERSION=2.5.6
# Download Uhub
if [ "$(uname)" == "Darwin" ]; then
UHUB_NAME=uhub_darwin_amd64
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
UHUB_NAME=uhub_linux_amd64
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
UHUB_NA... |
Make fzf search with ag | # --files: List files that would be searched but do not search
# --no-ignore: Do not respect .gitignore, etc...
# --hidden: Search hidden files and folders
# --follow: Follow symlinks
# --glob: Additional conditions for search (in this case ignore everything in the .git/ folder)
export FZF_DEFAULT_COMMAND='rg --files -... | export FZF_DEFAULT_COMMAND='ag -l --path-to-ignore ~/.ignore --nocolor --hidden -g ""'
# To install useful keybindings and fuzzy completion:
# $(brew --prefix)/opt/fzf/install
|
Change so windows uploader script renames the file properly | #!/bin/bash
# Move and Upload
COMMIT_SHA=$(git rev-parse HEAD)
TARGET_DIR=/var/www/wordpress/APMPlanner2/daily
TARGET_SUBDIR=${BUILD_ID:0:10}
if [ ! -d ${TARGET_DIR}/${TARGET_SUBDIR} ]; then
mkdir ${TARGET_DIR}/${TARGET_SUBDIR}/
fi
mv apmplanner2-installer-win32.exe ${TARGET_DIR}/${TARGET_SUBDIR}/apm_planner2_${COM... | #!/bin/bash
# Move and Upload
COMMIT_SHA=$(git describe --dirty)
TARGET_DIR=/var/www/wordpress/APMPlanner2/daily
TARGET_SUBDIR=${BUILD_ID:0:10}
if [ ! -d ${TARGET_DIR}/${TARGET_SUBDIR} ]; then
mkdir ${TARGET_DIR}/${TARGET_SUBDIR}/
fi
mv apmplanner2-installer-win32.exe ${TARGET_DIR}/${TARGET_SUBDIR}/apm_planner_${CO... |
Add sed for grape's nginx configuration | #!/bin/bash
# We assume single-user installation as
# done in our rvm.sh script and
# in Travis-CI
source $HOME/.rvm/scripts/rvm
sed -i 's| host:.*| host: '"${DBHOST}"'|g' config/database.yml
$NGINX_HOME/sbin/nginx -c $TROOT/config/nginx.conf
rvm ruby-2.0.0-p0 do bundle exec unicorn -E production -c config/unic... | #!/bin/bash
# We assume single-user installation as
# done in our rvm.sh script and
# in Travis-CI
source $HOME/.rvm/scripts/rvm
sed -i 's| host:.*| host: '"${DBHOST}"'|g' config/database.yml
sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' config/nginx.conf
$NGINX_HOME/sbin/nginx -c $TROOT/config/nginx.conf
... |
Exit on any error eg. failure in a pipe | #!/bin/bash -x
#
# Run Tests (post Travis build)
#
# Exit on errors
#
#set -e
#set -u
#set -o pipefail
# Pick up path to testinfra passed in
#
TESTINFRA="${1:-testinfra}"
# Define tests
#
tests="test/test_packages.py \
test/test_services.py \
test/test_files.py \
test/test_http.py \
test/... | #!/bin/bash -x
#
# Run Tests (post Travis build)
#
# Exit on errors
#
set -e
set -u
set -o pipefail
# Pick up path to testinfra passed in
#
TESTINFRA="${1:-testinfra}"
# Define tests
#
tests="test/test_packages.py \
test/test_services.py \
test/test_files.py \
test/test_http.py \
test/tes... |
Fix builder script for uxtaf | #!/bin/bash
#install.sh
#
#Configure and install all Git-tracked dependencies for fsnview
#TODO set -e isn't causing an error-out when 'bootstrap' isn't found under deps/sleuthkit.
set -e
set -x
case $1 in
local )
MAKEINSTALL="make install"
if [ -z "$2" ]; then
INSTALLDIR=$HOME/local
else
IN... | #!/bin/bash
#install.sh
#
#Configure and install all Git-tracked dependencies for fsnview
#TODO set -e isn't causing an error-out when 'bootstrap' isn't found under deps/sleuthkit.
set -e
set -x
case $1 in
local )
MAKEINSTALL="make install"
if [ -z "$2" ]; then
INSTALLDIR=$HOME/local
else
IN... |
Use EPEL for debootstrap on centos | #!/bin/bash
set -eux
set -o pipefail
sudo apt-get update || true
sudo apt-get install -y --force-yes \
apt-transport-https \
bzip2 \
debootstrap \
docker.io \
inetutils-ping \
lsb-release \
kpartx \
python-lzma \
qemu-utils \
rpm \
... | #!/bin/bash
set -eux
set -o pipefail
sudo apt-get update || true
sudo apt-get install -y --force-yes \
apt-transport-https \
bzip2 \
debootstrap \
docker.io \
inetutils-ping \
lsb-release \
kpartx \
python-lzma \
qemu-utils \
rpm \
... |
Upgrade to newer mysql-apt-config for travis CI. | echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections
wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
sudo dpkg --install mysql-apt-config_0.7.3-1_all.deb
sudo apt-get update -q
sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew -o Dpkg::Options::=... | echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections
wget http://dev.mysql.com/get/mysql-apt-config_0.8.1-1_all.deb
sudo dpkg --install mysql-apt-config_0.8.1-1_all.deb
sudo apt-get update -q
sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew -o Dpkg::Options::=... |
Comment install using port of gcc48 | #!/usr/bin/env bash
. src/misc.sh
echo "Update brew..."
brew update
echo "Install git..."
install_mac_dependency git
echo "Install mercurial..."
install_mac_dependency mercurial
echo "Install python..."
install_mac_dependency python
echo "Install perl..."
install_mac_dependency perl
echo "Install scons..."
instal... | #!/usr/bin/env bash
. src/misc.sh
echo "Update brew..."
brew update
echo "Install git..."
install_mac_dependency git
echo "Install mercurial..."
install_mac_dependency mercurial
echo "Install python..."
install_mac_dependency python
echo "Install perl..."
install_mac_dependency perl
echo "Install scons..."
instal... |
Test if the initialization creates the right folders | #!/bin/bash
test \
"make init" \
should_raise 0
test \
"cp ../resources/hello.cpp hello.cpp" \
"make standard" \
should_raise 0 | #!/bin/bash
test \
"make init" \
should_raise 0
test \
"make init" \
"ls" \
should_output "Config.mk\nMakefile\ndep\ndoc\ninclude\nsrc"
test \
"cp ../resources/hello.cpp hello.cpp" \
"make standard" \
should_raise 0
test \
"cp ../resources/hello.cpp hello.cpp" \
"make standard" \
"ls" \
shou... |
Move drivers back to master branch | GIT=https://gitlab.redox-os.org/redox-os/drivers.git
BRANCH=redox-unix
CARGOBUILD="build"
CARGOFLAGS="--all"
function recipe_version {
echo "0.1.1"
skip=1
}
function recipe_stage {
mkdir -pv "$1/etc/pcid"
cp -v initfs.toml "$1/etc/pcid/initfs.toml"
cp -v filesystem.toml "$1/etc/pcid/filesystem.tom... | GIT=https://gitlab.redox-os.org/redox-os/drivers.git
CARGOBUILD="build"
CARGOFLAGS="--all"
function recipe_version {
echo "0.1.1"
skip=1
}
function recipe_stage {
mkdir -pv "$1/etc/pcid"
cp -v initfs.toml "$1/etc/pcid/initfs.toml"
cp -v filesystem.toml "$1/etc/pcid/filesystem.toml"
mkdir -pv ... |
Remove the exit at the end of the script | #!/bin/sh
if test ! $(which brew); then
echo "Installing homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo "Installing homebrew packages..."
# cli tools
brew install ack
brew install tree
brew install wget
# development server setup
#brew install ngi... | #!/bin/sh
if test ! $(which brew); then
echo "Installing homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo "Installing homebrew packages..."
# cli tools
brew install ack
brew install tree
brew install wget
# development server setup
#brew install ngi... |
Build python on Linux only. | #!/bin/bash
#
# Trigger vars and find information
#
# $Id$
#
######################################################################
######################################################################
#
# Set variables whose change should not trigger a rebuild or will
# by value change trigger a rebuild, as change o... | #!/bin/bash
#
# Trigger vars and find information
#
# $Id$
#
######################################################################
######################################################################
#
# Set variables whose change should not trigger a rebuild or will
# by value change trigger a rebuild, as change o... |
Remove hg and bzr dependency check | check_deps() {
echo "Phase 0: Checking requirements."
has_deps=1
which bzr || has_deps=0
which git || has_deps=0
which hg || has_deps=0
which go || has_deps=0
if [[ $has_deps == 0 ]]; then
echo "Install bzr, hg, git, and golang."
exit 2
fi
}
test $# -ge 1 || usage
chec... | check_deps() {
echo "Phase 0: Checking requirements."
has_deps=1
which git || has_deps=0
which go || has_deps=0
if [[ $has_deps == 0 ]]; then
echo "Install git and golang."
exit 2
fi
}
test $# -ge 1 || usage
check_deps
|
Install just ruby 2.1.3 (for now, at least). | # Opt-out of installing Ruby.
[[ "$no_ruby" ]] && return 1
# Initialize rbenv.
source ~/.dotfiles/source/50_ruby.sh
# Install Ruby.
if [[ "$(type -P rbenv)" ]]; then
versions=(2.1.3 2.0.0-p576 1.9.3-p547)
list="$(to_install "${versions[*]}" "$(rbenv whence ruby)")"
if [[ "$list" ]]; then
e_header "Installi... | # Opt-out of installing Ruby.
[[ "$no_ruby" ]] && return 1
# Initialize rbenv.
source ~/.dotfiles/source/50_ruby.sh
# Install Ruby.
if [[ "$(type -P rbenv)" ]]; then
versions=(2.1.3) # 2.0.0-p576 1.9.3-p547)
list="$(to_install "${versions[*]}" "$(rbenv whence ruby)")"
if [[ "$list" ]]; then
e_header "Insta... |
Add test for clang-3.8 C++11 support | #!/usr/bin/env bash
#
# Copyright (c) 2019-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C.UTF-8
export CONTAINER_NAME=ci_native_nowallet
export DOCKER_NAME_TAG=ubuntu:16.04 # Use... | #!/usr/bin/env bash
#
# Copyright (c) 2019-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C.UTF-8
export CONTAINER_NAME=ci_native_nowallet
export DOCKER_NAME_TAG=ubuntu:16.04 # Use... |
Fix lock removal bug in the worst way possible | #!/bin/bash
set -ex
git config user.name time
git config user.email time@allweretaken.xyz
git config commit.gpgsign false
if [ -e lock ]; then
rm lock
fi
while true; do
date=$(date +"%H %M %Z")
sed -i 's&<p can i put a marker here?.*$&<p can i put a marker here?>'"$date"'</p>&' index.html
echo $date... | #!/bin/bash
set -ex
git config user.name time
git config user.email time@allweretaken.xyz
git config commit.gpgsign false
if [ -e lock ]; then
rm lock
fi
while true; do
date=$(date +"%H %M %Z")
sed -i 's&<p can i put a marker here?.*$&<p can i put a marker here?>'"$date"'</p>&' index.html
echo $date... |
Set default shell to bash | # Copyright (c) 2015, M. Helmy Hemida. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
first_path=$(which $1)
echo command path: $first_path
deps=$(ldd $first_path | grep -oh '/.* ')
echo dependencies paths: $deps
cloned="$first_path $deps $c... | # Copyright (c) 2015, M. Helmy Hemida. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#!/bin/bash
first_path=$(which $1)
echo command path: $first_path
deps=$(ldd $first_path | grep -oh '/.* ')
echo dependencies paths: $deps
cloned="$first_p... |
Enable info logging in gradle | #!/usr/bin/env bash
set -e
set -o pipefail
pushd rider
./gradlew buildBackend
./gradlew buildPlugin | #!/usr/bin/env bash
set -e
set -o pipefail
pushd rider
./gradlew buildBackend --info
./gradlew buildPlugin --info
|
Read python version from travis | #!/usr/bin/env bash
set -ex # fail on first error, print commands
command -v conda >/dev/null 2>&1 || {
echo "Requires conda but it is not installed. Run install_miniconda.sh." >&2;
exit 1;
}
if [[ $* != *--global* ]]; then
ENVNAME="testenv"
if conda env list | grep -q ${ENVNAME}
then
echo ... | #!/usr/bin/env bash
set -ex # fail on first error, print commands
command -v conda >/dev/null 2>&1 || {
echo "Requires conda but it is not installed. Run install_miniconda.sh." >&2;
exit 1;
}
# if no python specified, use Travis version, or else 3.6
PYTHON_VERSION=${PYTHON_VERSION:-${TRAVIS_PYTHON_VERSION:-3.6}... |
Make deprecation of autoconf/automake more visible | #!/bin/sh
echo "*** Autoconf/automake is deprecated for Openwsman"
echo "*** and might not fully work."
echo "*** Use cmake instead !"
UNAME=`uname`
mkdir -p m4
# Ouch, automake require this
cp README.md README
if [ "$UNAME" = "Darwin" ]; then
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
fi
$LIBTOOL... | #!/bin/sh
cat <<EOS >&2
*** Autoconf/automake is deprecated for Openwsman and might not fully work.
*** Please use CMake instead!
EOS
if [ "$1" != "--ignore-deprecation-warning" ]; then
cat <<EOS >&2
*** To ignore this warning and proceed regardless, re-run as follows:
*** $0 --ignore-deprecation-warning
EOS
e... |
Add git commit version to build number | #!/bin/bash
# Exit on first error
set -e
SERVICE_NAME="weblab/fillo"
DOCKER_REGISTRY="$AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/$SERVICE_NAME"
# Get Docker Registry login token
eval "$(aws ecr get-login --region us-east-1)"
# Get new version
SERVICE_VERSION=`node -e 'console.log(require("./package.json").vers... | #!/bin/bash
# Exit on first error
set -e
SERVICE_NAME="weblab/fillo"
DOCKER_REGISTRY="$AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/$SERVICE_NAME"
# Get Docker Registry login token
eval "$(aws ecr get-login --region us-east-1)"
# Get new version
GIT_COMMIT_HASH=`git rev-parse --short HEAD`
SERVICE_VERSION=`node -... |
Make cdl function select only directories | # Find lexically last directory that starts with provided parameter and cd into it
cdl () {
local cands=("$1"*)
cd "${cands[-1]}"
}
# Fold text file at spaces to 80 columns
wrap () {
fold --spaces "$1" > "$1".$$ && mv "$1".$$ "$1"
}
# Local function definitions
if [[ -f $HOME/.functions_local.bash ]]; the... | # Find lexically last directory that starts with provided parameter and cd into it
cdl () {
local cands=("$1"*/)
cd "${cands[-1]}"
}
# Fold text file at spaces to 80 columns
wrap () {
fold --spaces "$1" > "$1".$$ && mv "$1".$$ "$1"
}
# Local function definitions
if [[ -f $HOME/.functions_local.bash ]]; th... |
Make new directory when extracting. | #!/usr/bin/env sh
# This script downloads the Oxford 102 category flower dataset including:
# - jpg images
# - images labels
# - the training/testing/validation splits
mkdir data
cd data
echo "Downloading flower images..."
wget http://www.robots.ox.ac.uk/~vgg/data/flowers/102/102flowers.tgz
tar -xf 102flowers.tgz ... | #!/usr/bin/env sh
# This script downloads the Oxford 102 category flower dataset including:
# - jpg images
# - images labels
# - the training/testing/validation splits
mkdir data
cd data
mkdir oxford102
echo "Downloading flower images..."
wget http://www.robots.ox.ac.uk/~vgg/data/flowers/102/102flowers.tgz
tar -xf... |
Reduce the amount of time to wait for autodiscovery | #!/bin/bash
set -e
function run_tests() {
local clusterSize=3
local version=$1
ccm create test -v binary:$version -n $clusterSize -d --vnodes
ccm updateconf 'concurrent_reads: 8' 'concurrent_writes: 32' 'rpc_server_type: sync' 'rpc_min_threads: 2' 'rpc_max_threads: 8' 'write_request_timeout_in_ms: 5000' 'read_re... | #!/bin/bash
set -e
function run_tests() {
local clusterSize=3
local version=$1
ccm create test -v binary:$version -n $clusterSize -d --vnodes
ccm updateconf 'concurrent_reads: 8' 'concurrent_writes: 32' 'rpc_server_type: sync' 'rpc_min_threads: 2' 'rpc_max_threads: 8' 'write_request_timeout_in_ms: 5000' 'read_re... |
Add comments to clarify the steps | #!/bin/bash -l
#SBATCH -N 1
#SBATCH -p regular
#SBATCH -t 00:45:00
#SBATCH -C knl,quad,cache
export KMP_AFFINITY=granularity=fine,compact
export NUM_OF_THREADS=$(grep 'model name' /proc/cpuinfo | wc -l)
export OMP_NUM_THREADS=$(( $NUM_OF_THREADS / 4 ))
export MKL_NUM_THREADS=$(( $NUM_OF_THREADS / 4 )... | #!/bin/bash -l
#SBATCH -N 1
#SBATCH -p regular
#SBATCH -t 00:45:00
#SBATCH -C knl,quad,cache
# specify threading settings
export KMP_AFFINITY=granularity=fine,compact
export NUM_OF_THREADS=$(grep 'model name' /proc/cpuinfo | wc -l)
export OMP_NUM_THREADS=$(( $NUM_OF_THREADS / 4 ))
export MKL_NUM_THREA... |
Change the design of the preview button | .comable-page
.comable-main-fixed-top
.comable-page-heading
ul.pull-right.list-inline
li.dropdown
= link_to '#', class: 'btn btn-default', 'data-toggle' => 'dropdown' do
i.fa.fa-bars
ul.dropdown-menu.dropdown-menu-right
li
= link_to comable.p... | .comable-page
.comable-main-fixed-top
.comable-page-heading
ul.pull-right.list-inline
li
= link_to comable.page_path(@page), class: 'btn btn-default', target: '_blank' do
i.fa.fa-external-link>
= Comable.t('admin.preview')
li
= link_to_save
... |
Use a different icon for the new skill branch button. | = page_header do
div.btn-group
- if can?(:create, Course::Assessment::Skill.new(course: current_course))
= new_button([current_course, :assessments, :skill])
- if can?(:create, Course::Assessment::SkillBranch.new(course: current_course))
= new_button([current_course, :assessments, :skill_branch])
... | = page_header do
div.btn-group
- if can?(:create, Course::Assessment::Skill.new(course: current_course))
= new_button([current_course, :assessments, :skill])
- if can?(:create, Course::Assessment::SkillBranch.new(course: current_course))
= new_button([current_course, :assessments, :skill_branch]) ... |
Remove extra/missing paragraph in activated unverfied email | - content_for(:title) do
h3= t("promo_mailer.promo_activated_2018q1_unverified.subject")
p.salutation= t("publisher_mailer.shared.salutation", name: @publisher.name)
p = t("promo_mailer.promo_activated_2018q1_unverified.body_one")
= t("promo_mailer.promo_activated_2018q1_unverified.body_two_html")
p = t("promo_ma... | - content_for(:title) do
h3= t("promo_mailer.promo_activated_2018q1_unverified.subject")
p.salutation= t("publisher_mailer.shared.salutation", name: @publisher.name)
p = t("promo_mailer.promo_activated_2018q1_unverified.body_one")
= t("promo_mailer.promo_activated_2018q1_unverified.body_two_html")
div.center= lin... |
Clean up function returns markup | h3.doc-item__title
code
= item.context.name
span.doc-item__directive-type
= item.context.type.capitalize
- if item.return.present?
div.doc-item__returns
| Returns: #{ item.return.type }
- if item.since.present?
- item.since.each do |release|
span.doc-item__since
| #{release.version}+
div.d... | h3.doc-item__title
code
= item.context.name
span.doc-item__directive-type
= item.context.type.capitalize
- if item.return.present?
span.doc-item__returns
| Returns:
code< #{item.return.type}
- if item.since.present?
- item.since.each do |release|
span.doc-item__since
| #{release.version... |
Add title to post submission declaration of corporate responsibility | p
' Congratulations! Your application for the
= award.decorate.award_type
' has been shortlisted.
/ if they answered D1 with complete full declaration later
/- if corp_responsibility_form == "declare_now"
.application-notice.help-notice
p
' You should now complete both the audit certificate and full Decla... | p
' Congratulations! Your application for the
= award.decorate.award_type
' has been shortlisted.
br
h3 Declaration of Corporate Responsibility
/ if they answered D1 with complete full declaration later
/- if corp_responsibility_form == "declare_now"
.application-notice.help-notice
p
' You should now co... |
Create Work - form centering and help text | h1 Create a New Work
=form_for(@work, { :url => { :action => 'create' }}) do |f|
=validation_summary @work
table.form
tr
th =f.label :title
td.w100 =f.text_field :title
tr
th =f.label :description
td =f.text_area :description
=f.button 'Create Work' | section.signon
h1 Create New Work
p To create a new work please start from entering a title for the work. Although description is not required, it would be nice to describe the work here.
=form_for(@work, { :url => { :action => 'create' }}) do |f|
=validation_summary @work
table.form
tr.big
... |
Remove informação de tamanho do arquivo CSV no CTA principal da página inicial. | div[ng-controller="IndexController"]
= render 'shared/persistent_header', entity: 'brasil', year_navigation: true
.showcase
.container
.row
.span7
h2
| O portal que visa facilitar o acesso dos cidadãos/ãs e organizações da sociedade civil aos dados do orçamento federal.
... | div[ng-controller="IndexController"]
= render 'shared/persistent_header', entity: 'brasil', year_navigation: true
.showcase
.container
.row
.span7
h2
| O portal que visa facilitar o acesso dos cidadãos/ãs e organizações da sociedade civil aos dados do orçamento federal.
... |
Fix typo in iframe src url for vimeo | div(itemprop="video" itemscope itemtype="http://schema.org/VideoObject")
h4 itemprop="name" #{video.title}
/ TODO Add more metadata
span itemprop="duration" content="#{video.duration_in_seconds}"
span itemprop="thumbnail" content="#{video.thumb_url}"
span itemprop="uploadDate" content="#{video.upload_date_iso... | div(itemprop="video" itemscope itemtype="http://schema.org/VideoObject")
h4 itemprop="name" #{video.title}
/ TODO Add more metadata
span itemprop="duration" content="#{video.duration_in_seconds}"
span itemprop="thumbnail" content="#{video.thumb_url}"
span itemprop="uploadDate" content="#{video.upload_date_iso... |
Add toolbar link for income calculator | - if current_user
.row
dl.sub-nav
dd
=link_to 'DWP check', new_dwp_checks_path
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_path
dd.right
=link_to 'Offices', offices_pat... | - if current_user
.row
dl.sub-nav
dd#dwp-check
=link_to 'DWP check', new_dwp_checks_path
dd#income-calc
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_path
dd.right
... |
Change “submit new issue” link style | - title t('.title', issue: @issue)
.featurette.featurette-indigo
.container
h1= yield :title
.featurette
.container
h2= t('.details')
p
b> #{Issue.human_attribute_name(:stars)}:
= @issue.stars
p
b> #{Device.model_name.human}:
= @issue.device.name
p
b= Issue.human_at... | - title t('.title', issue: @issue)
.featurette.featurette-indigo
.container
h1= yield :title
.featurette
.container
h2= t('.details')
p
b> #{Issue.human_attribute_name(:stars)}:
= @issue.stars
p
b> #{Device.model_name.human}:
= @issue.device.name
p
b= Issue.human_at... |
Fix required bug on search form | = simple_form_for search_cache, url: offers_path, html: { method: :get } do |f|
= f.input :query, label: true, required: false, input_html: { placeholder: 'Was? z.B. drogen, schwanger, erziehungshilfe...', spellcheck: false, autocomplete: 'off', autofocus: true, class: 'input-xlg typeahead' }
= f.input :search_loc... | = simple_form_for search_cache, url: offers_path, html: { method: :get } do |f|
= f.input :query, label: true, required: false, input_html: { placeholder: 'Was? z.B. drogen, schwanger, erziehungshilfe...', spellcheck: false, autocomplete: 'off', autofocus: true, class: 'input-xlg typeahead' }
= f.input :search_loc... |
Adjust the sidebar responsive view | doctype html
html lang="en"
head
meta charset="utf-8" /
meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport" /
title = [content_for?(:title) ? yield(:title) : nil, site_name].join ' - '
= stylesheet_link_tag "application"
= javascript_include_tag "application"
... | doctype html
html lang="en"
head
meta charset="utf-8" /
meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport" /
title = [content_for?(:title) ? yield(:title) : nil, site_name].join ' - '
= stylesheet_link_tag "application"
= javascript_include_tag "application"
... |
Make use of title gem | doctype html
html
head
title Discounty
== stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
== javascript_include_tag 'application', 'data-turbolinks-track' => true
== csrf_meta_tags
body
== yield
| doctype html
html
head
title
= title
== stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
== javascript_include_tag 'application', 'data-turbolinks-track' => true
== csrf_meta_tags
body
== yield
|
Add date to article layout. | = wrap_layout :layout do
section
article
h1 == link_to current_page.data.title, current_page.url
h2.post-meta by #{data.owner.name} on DATE HERE
== yield
| = wrap_layout :layout do
section
article
h1 == link_to current_page.data.title, current_page.url
h2.post-meta by #{data.owner.name} on #{current_page.data.date.strftime('%B %-d, %Y')}
== yield
|
Add return to docs button | <redoc spec-url='/data/docs/builder-api.json'></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js"> </script>
| <button class="return" style="font-size:16; background-color:#007FAB; height:2.5rem;width:10rem; margin:1rem; border-radius:0.33rem"><a style="color:white; text-decoration:none" href='https://www.habitat.sh/docs/'>Return to Docs</a></button>
<redoc spec-url='/data/docs/builder-api.json'></redoc>
<script src="https://c... |
Update view to match summary | header
.row
.small-12.medium-12.large-12.columns
h2 =t('processed_applications.detail.title')
=build_section 'Personal details', @overview, %w[full_name date_of_birth ni_number status number_of_children total_monthly_income]
=build_section 'Application details', @overview, %w[fee jurisdiction date_received... | header
.row
.small-12.medium-12.large-12.columns
h2 =t('processed_applications.detail.title')
=build_section 'Personal details', @overview, %w[full_name date_of_birth ni_number status number_of_children total_monthly_income]
=build_section 'Application details', @overview, %w[fee jurisdiction date_received... |
Add user icon to Sign In | - if user_signed_in?
ul.nav
li
a bs-dropdown="userMenu"
i.icon-user
= current_user.name
i.icon-chevron-down
li
a
span#loading-gear.animated.flash ng-show="loading()"
img.image.icon-spin src='#{asset_path("gear.svg")}' style="color: #333"
ul.nav ng-controller="AlertCt... | - if user_signed_in?
ul.nav
li
a bs-dropdown="userMenu"
i.icon-user
= current_user.name
i.icon-chevron-down
li
a
span#loading-gear.animated.flash ng-show="loading()"
img.image.icon-spin src='#{asset_path("gear.svg")}' style="color: #333"
ul.nav ng-controller="AlertCt... |
Make hovered link color white | .p-profile-header.p-profile-header--low.d-flex
.p-profile-header__cover-image style="background: url(#{profile_background_image_url(user.profile, size: '800x520', size_rate: 2)}) center center /cover no-repeat;"
.p-profile-header__info.align-self-end.py-3
.container
.row
.col.u-flex-grow-0
... | .p-profile-header.p-profile-header--low.d-flex
.p-profile-header__cover-image style="background: url(#{profile_background_image_url(user.profile, size: '800x520', size_rate: 2)}) center center /cover no-repeat;"
.p-profile-header__info.align-self-end.py-3
.container
.row
.col.u-flex-grow-0
... |
Disable Target Params from menu for now | nav.top-bar [data-topbar]
ul.title-area
li.name
h1 = link_to t('app.name'), dashboard_path
li.toggle-topbar.menu-icon
a href="#"
span
a.item.home
section.top-bar-section
// right seciton
ul.right
li = link_to logout_path, class: 'item' do
i.off.icon
= t '... | nav.top-bar [data-topbar]
ul.title-area
li.name
h1 = link_to t('app.name'), dashboard_path
li.toggle-topbar.menu-icon
a href="#"
span
a.item.home
section.top-bar-section
// right seciton
ul.right
li = link_to logout_path, class: 'item' do
i.off.icon
= t '... |
Add ranges to number fields | = simple_nested_form_for ([:orga, conference]) do |f|
- if conference.errors.any?
#error_explanation
h2 = "#{pluralize(conference.errors.count, "error")} prohibited this mailing from being saved:"
ul
- conference.errors.full_messages.each do |message|
li = message
= f.input :name
... | = simple_nested_form_for ([:orga, conference]) do |f|
- if conference.errors.any?
#error_explanation
h2 = "#{pluralize(conference.errors.count, "error")} prohibited this mailing from being saved:"
ul
- conference.errors.full_messages.each do |message|
li = message
= f.input :name
... |
Clean up styles on signup 2FA prompt | .main-content
.container
.row
.sub-panel.login-panel.col-center.col-xs-12.col-sm-10.col-md-8.col-lg-6
.col.col-xs-12.col-sm-10.col-md-8.col-lg-10.col-center.text-center
p= render "icon_security"
h3= t ".heading"
h4= t ".subheading"
p= t ".intro"
.row
... | .main-content
.container
.sub-panel.col-center.col-xs-12.col-sm-10.col-md-8.col-lg-6
.row
.col.col-xs-12.col-sm-10.col-md-9.col-lg-10.col-center.text-center
p= render "icon_security"
h3= t ".heading"
h4= t ".subheading"
p= t ".intro"
.row
.col.co... |
Use same content in title and og:title | doctype html
html
head
title = page_title(@activity.try(:name))
meta name="description" content= page_description(@activity.try(:description))
- %w{twitter og}.each do |prefix|
meta name="#{prefix}:title" content= page_description(@activity.try(:name))
meta name="#{prefix}:description" content... | doctype html
html
head
title = page_title(@activity.try(:name))
meta name="description" content= page_description(@activity.try(:description))
- %w{twitter og}.each do |prefix|
meta name="#{prefix}:title" content= page_title(@activity.try(:name))
meta name="#{prefix}:description" content= page... |
Remove javascript files from devise layout | doctype html
html id="controller_#{controller_name}"
head
meta charset='utf-8'
meta name='viewport' content='width=device-width, initial-scale=1.0'
meta name="robots" content="noindex,nofollow"
title= @page_title || admin_site_name
= stylesheet_link_tag 'ab_admin/devise', media: 'all'
script ... | doctype html
html id="controller_#{controller_name}"
head
meta charset='utf-8'
meta name='viewport' content='width=device-width, initial-scale=1.0'
meta name="robots" content="noindex,nofollow"
title= @page_title || admin_site_name
= stylesheet_link_tag 'ab_admin/devise', media: 'all'
= csrf_... |
Include full name of clients in drop-down in Stay form | = form_for(@stay) do |f|
div.field
= f.label :shelter
= f.collection_select :shelter_id, Shelter.order(:name), :id, :name
div.field
= f.label :user
= f.collection_select :user_id, User.order(:last_name, :first_name), :id, :last_name
div.actions
= f.submit
| = form_for(@stay) do |f|
div.field
= f.label :shelter
= f.collection_select :shelter_id, Shelter.order(:name), :id, :name
div.field
= f.label :user
= f.collection_select :user_id, User.order(:last_name, :first_name), :id, :name
div.actions
= f.submit
|
Format for missing observation results | p
strong Recent Pathology Results
p
- recent_pathology_results[1..-1].each do |observation|
- description, result, date = observation
span #{date}: #{description} #{result};
| p
strong Recent Pathology Results
p
- recent_pathology_results[1..-1].each do |pathology_result|
- description, observation, date = pathology_result
- if observation.result.present?
span #{date}: #{description} #{observation.result};
- else
span #{description};
|
Return payments show page to original state - We need to fix the flow for this as create claim feature will break if no EPDQ form is present. | header.main-header
h3 Page 1 of 11
h1 Your fee
.main-section
aside
h3 Get Help
nav
ul
li
= link_to('Read the guide')
li
= link_to('Sign out', user_sessions_path)
.main-content
.main-column
fieldset
legend Application fee
p = "The standa... | h1 Pay your fee
p = "From the information you’ve given us, you have to pay <strong>£#{fee_calculation.application_fee_after_remission}</strong> by debit or credit card.".html_safe
p = "If your case goes to a tribunal, you’ll have to pay a hearing fee of <strong>£#{fee_calculation.hearing_fee}</strong>.".html_safe
= ... |
Add talk title to speaker list | #ponentes.speakers.widget-content
.row
.columns.small-12.medium-12.large-12
.center-content
h2 Ponentes
div
ul.small-block-grid-1.medium-block-grid-2 class="large-block-grid-#{event.speakers.count}"
- event.speakers.each do |speaker|
li
.av... | #ponentes.speakers.widget-content
.row
.columns.small-12.medium-12.large-12
.center-content
h2 Ponentes
div
ul.small-block-grid-1.medium-block-grid-2 class="large-block-grid-#{event.speakers.count}"
- event.speakers.each do |speaker|
li
.av... |
Make sure footer columns don't stack on smaller screen sizes | footer
.container
.row
.col-md-6
ul.links
li = link_to 'About', about_path
li = link_to 'Terms of Service', tos_path
li = link_to 'Privacy Policy', privacy_path
.col-md-6.text-right
' Developed with passion by
= link_to 'Marcin Kulik', 'https://gi... | footer
.container
.row
.col-md-6.col-xs-6
ul.links
li = link_to 'About', about_path
li = link_to 'Terms of Service', tos_path
li = link_to 'Privacy Policy', privacy_path
.col-md-6.col-xs-6.text-right
' Developed with passion by
= link_to 'Marcin K... |
Add `.markdown-body` to description field | .tweak-title
.d-inline-block.my-3.mx-2
= mega_octicon_for(@tweak)
h3.d-inline-block.my-3 = @tweak.title
.d-inline-block.mx-2
' Created by
a href="#{user_path(@conn, :show, @tweak.user.name)}" = @tweak.user.name
.border.p-2
.pb-2.clearfix
= gettext "Last updated about "
= relative_time(@tweak... | .tweak-title
.d-inline-block.my-3.mx-2
= mega_octicon_for(@tweak)
h3.d-inline-block.my-3 = @tweak.title
.d-inline-block.mx-2
' Created by
a href="#{user_path(@conn, :show, @tweak.user.name)}" = @tweak.user.name
.border.p-2
.pb-2.clearfix
= gettext "Last updated about "
= relative_time(@tweak... |
Fix error if user don't have name | nav.navbar.navbar-default.navbar-static-top.main-navbar
.container-fluid
.navbar-header
= link_to "moi", admin_root_path, class: "navbar-brand"
.collapse.navbar-collapse
ul.nav.navbar-nav
= nav_item "dashboard", admin_root_path
- if can? :manage, User
= nav_item "users",... | nav.navbar.navbar-default.navbar-static-top.main-navbar
.container-fluid
.navbar-header
= link_to "moi", admin_root_path, class: "navbar-brand"
.collapse.navbar-collapse
ul.nav.navbar-nav
= nav_item "dashboard", admin_root_path
- if can? :manage, User
= nav_item "users",... |
Update alert on root page | h1.header
= icon('comments-alt')
span Activities
= link_to '<span>Atom Feed</span>'.html_safe, activities_path(format: :atom), class: 'atom'
- if current_user.try(:supervisor?)
.alert.alert-success
'Hey Supervisor! See the dashboard link in the menu ^ ? That's your new dashboard!
div.selection-box
form.... | h1.header
= icon('comments-alt')
span Activities
= link_to '<span>Atom Feed</span>'.html_safe, activities_path(format: :atom), class: 'atom'
- if current_user.try(:supervisor?)
.alert.alert-success
'Hey Supervisor! Did you check on your team today? You can do that in your Dashboard now!
div.selection-box
... |
Fix alert form when no checkbox is checked | div
- Alert.available_collections.each do |available_collection|
= render "collection_fields", collection: available_collection
| = hidden_field_tag "alert[categories_ids][]", nil
div
- Alert.available_collections.each do |available_collection|
= render "collection_fields", collection: available_collection
|
Fix bug with width attribute for img tag | footer.footer-container#footer
.row.footer
.small-12.large-4.columns
|
== setting.newsletter(newsletter_user) if @newsletter_module.enabled?
.small-12.large-4.columns.credentials
== setting.credentials
.small-12.large-4.columns.socials
- if setting.show_social? && @social_m... | footer.footer-container#footer
.row.footer
.small-12.large-4.columns
|
== setting.newsletter(newsletter_user) if @newsletter_module.enabled?
.small-12.large-4.columns.credentials
== setting.credentials
.small-12.large-4.columns.socials
- if setting.show_social? && @social_m... |
Check default currency for nil and BAT, return USD in either case | .modal id="rewards_banner_intro_modal" role="dialog" tabindex="-1"
.modal-dialog
.modal-header id="instant-donation-modal-selection"
center id="intro-container"
= image_tag "icn-donation-jar@1x.png", id: 'icn-donation-jar'
h2.modal-title = t ".headline"
p = t ".intro"
= hidde... | .modal id="rewards_banner_intro_modal" role="dialog" tabindex="-1"
.modal-dialog
.modal-header id="instant-donation-modal-selection"
center id="intro-container"
= image_tag "icn-donation-jar@1x.png", id: 'icn-donation-jar'
h2.modal-title = t ".headline"
p = t ".intro"
= link_... |
Fix erreur 500 sur projet envisagé si l'étape 2 n'a pas été remplie | article.block.projet
h3 Projet envisagé
= link_to t('projets.visualisation.lien_edition'), etape2_description_projet_path(@projet_courant), class: 'edit'
.content-block
= affiche_demande_souhaitee(@projet_courant.demande)
hr/
h4 Organisme qui vous accompagne pour la suite de votre projet :
- opera... | article.block.projet
h3 Projet envisagé
= link_to t('projets.visualisation.lien_edition'), etape2_description_projet_path(@projet_courant), class: 'edit'
.content-block
- if @projet_courant.demande.blank?
- if current_agent
p Le demandeur n'a pas encore rempli le projet.
- else
= l... |
Use developer login config option to determine if Disqus is used in developer mode | #disqus_thread
javascript:
/!* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '#{config.disqus_id}';
var disqus_developer = #{production? ? 0 : 1};
var disqus_identifier = '#{disqus_identifier}';
/!* * * DON'T EDIT BELOW THIS LINE * * */
disqus = function(... | #disqus_thread
javascript:
/!* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '#{config.disqus_id}';
var disqus_developer = #{Schnitzelpress.config.developer_login? ? 0 : 1};
var disqus_identifier = '#{disqus_identifier}';
/!* * * DON'T EDIT BELOW THIS LINE ... |
Update alert email sent to customers | p Aloha #{@customer.first_name},
p
| Nous avons rentré des articles qui correspondent à vos critères de recherche.
br
strong
= link_to "Modifier mes critères de recherche", \
"https://www.petitkiwi.be/pages/alertes", \
target: '_blank'
- @collections.each do |collection|
h2
... | p Aloha #{@customer.first_name},
p
| Nous avons rentré des articles qui correspondent à vos critères de recherche.
br
strong
= link_to 'Modifier mes critères de recherche', \
'https://www.petitkiwi.be/pages/mon-alerte-email', \
target: '_blank'
- @collections.each do |collection|... |
Remove hover text on speaker list | - title t('.title')
- breadcrumb :speakers
/ TODO: Set page banner
section.team-area-v2
.container
.sec-title.text-center
.underlay.text-center
h2 = t('.speakers')
h1 = t('.speakers')
- @speakers.in_groups_of(4) do |speakers|
.row
- speakers.compact.each do |speaker|
... | - title t('.title')
- breadcrumb :speakers
/ TODO: Set page banner
section.team-area-v2
.container
.sec-title.text-center
.underlay.text-center
h2 = t('.speakers')
h1 = t('.speakers')
- @speakers.in_groups_of(4) do |speakers|
.row
- speakers.compact.each do |speaker|
... |
Remove fake sign out url | .row(ng-app="kassa")
.col-xs-12
.row
nav(ng-controller="NavigationCtrl")
ul
li(ng-repeat="route in routes" ng-class='{active: isCurrent(route)}')
a(ng-href="{{route.href}}") {{route.name}}
li
a(ng-href="/users/{{session.currentUser().id}}" ng-click='sessio... | .row(ng-app="kassa")
.col-xs-12
.row
nav(ng-controller="NavigationCtrl")
ul
li(ng-repeat="route in routes" ng-class='{active: isCurrent(route)}')
a(ng-href="{{route.href}}") {{route.name}}
li
a(ng-href="/users/{{session.currentUser().id}}" ng-click='sessio... |
Move dashboard video to mithril component | = simple_form_for @project, html: { class: 'project-form w-form' } do |form|
.w-section.section
.w-container
.w-row
.w-col.w-col-10.w-col-push-1
.u-marginbottom-60.u-text-center
.w-inline-block.card.fontsize-small.u-radius
span.fa.fa-fw.fa-lightbulb-o
... | - parameters = { project_id: @project.id, user_id: @project.user_id, rails_errors: @project.errors.to_json }.to_json
.w-row
.w-col.w-col-10.w-col-push-1
#project-edit-video data-mithril='projectEditVideo' data-parameters=parameters
|
Fix bug with parent_id not set in comment form | = f.hidden_field :lang,
value: params[:locale]
= f.input :comment,
as: :text,
input_html: { class: 'autosize', style: 'height: 120px' }
= f.input :nickname,
label: false,
input_html: { class: 'hide-for-small-up' }
.submit-and-loader
= image_tag(Figaro.env.load... | = f.hidden_field :lang,
value: params[:locale]
= f.input :comment,
as: :text,
input_html: { class: 'autosize', style: 'height: 120px' }
= f.input :nickname,
label: false,
input_html: { class: 'hide-for-small-up' }
- if params[:action] == 'reply'
= f.hidden_fie... |
Remove "み" not to breaking line | h1 受取確認
table.table.table-hover
thead
tr
th.col-xs-1.text-center = '-'
- Lunchbox.all.each do |lunchbox|
th = "#{lunchbox.name} (#{lunchbox.price}円)"
th.text-center = '-'
tbody
- @order.order_items.each do |item|
tr class=('info' if item.received_at?)
th = item.cust... | h1 受取確認
table.table.table-hover
thead
tr
th.col-xs-1.text-center = '-'
- Lunchbox.all.each do |lunchbox|
th = "#{lunchbox.name} (#{lunchbox.price}円)"
th.text-center = '-'
tbody
- @order.order_items.each do |item|
tr class=('info' if item.received_at?)
th = item.cust... |
Remove payments tab from users | - content_for :title, "Editing: #{@user.display_name}"
- content_for :meta_tags do
-# Meta tags for facebook social graph
meta property="og:title" content=@user.name
meta property="og:url" content=="#{Configuration[:base_url]}#{user_path(@user)}"
meta property="og:image" content==@user.display_image
meta pro... | - content_for :title, "Editing: #{@user.display_name}"
- content_for :meta_tags do
-# Meta tags for facebook social graph
meta property="og:title" content=@user.name
meta property="og:url" content=="#{Configuration[:base_url]}#{user_path(@user)}"
meta property="og:image" content==@user.display_image
meta pro... |
Remove temporal spellcheck in content | - formatted_contents.fetch(level).fetch(kind).each do |content|
.neuron-content
div = content.title
.content-description
= content.description_spellchecked
= content.keywords
= content.source
- if content.can_be_approved?
.neuron-moderate-actions
= content.toggle_approved
... | - formatted_contents.fetch(level).fetch(kind).each do |content|
.neuron-content
div = content.title
.content-description
= content.description
= content.keywords
= content.source
- if content.can_be_approved?
.neuron-moderate-actions
= content.toggle_approved
= content.me... |
Move payment options to 8 columns | .payment
h3.title = t('.title')
section.row.methods
- PaymentEngine.all.each do |engine|
.large-6.columns[class="payment-method-option-#{engine.name}"]
label.payment-method-option
.left
= radio_button_tag :payment_method, engine.name, false
|
=... | .payment
h3.title = t('.title')
.row
.medium-8.columns
section.row.methods
- PaymentEngine.all.each do |engine|
.large-6.columns[class="payment-method-option-#{engine.name}"]
label.payment-method-option
.left
= radio_button_tag :payment_method,... |
Fix up contribute button (and retab template) | .col-md-9#social-content
.contribute
p
|
This project is open source. Please improve the RubyConf 13 Hub and post your talk summaries, photos, videos etc.
a.contribute_link href="https://github.com/ninefold/rubyconf_miami_hub/blob/master/README.md" <i class="fa fa-pencil-square-o"></i> Contribu... | .col-md-9#social-content
.contribute
p
|
This project is open source. Please improve the RubyConf 13 Hub and post your talk summaries, photos, videos etc.
= link_to "https://github.com/ninefold/rubyconf_miami_hub/blob/master/README.md", :class => "contribute_link btn btn-default" do
... |
Add class attribute to 'send request' button in 'CONTACT US' page | .row
.col-md-12.page-element
h3.page-title-header Contact Us
div.page-title-body
| Send a message to us using the form below.
hr
- flash.each do |key, value|
= content_tag(:div, value, class: "alert alert-#{key}", role: 'alert')
= simple_form_for @inquiry do |f|
= f... | .row
.col-md-12.page-element
h3.page-title-header Contact Us
div.page-title-body
| Send a message to us using the form below.
hr
- flash.each do |key, value|
= content_tag(:div, value, class: "alert alert-#{key}", role: 'alert')
= simple_form_for @inquiry do |f|
= f... |
Remove even more `try` calls in task show. | h1 = @task.title
p = @task.state
p = @task.milestone.try :name
p = @task.assigned_user.try :name
| h1 = @task.title
p = @task.state
p = @task.milestone_name
p = @task.assigned_user_name
|
Add missing nil guard to _personal_or_ref_time | - effective_time = item.time_for(course_user)
- reference_time = item.reference_time_for(course_user)
- if effective_time.is_a? Course::PersonalTime and effective_time.fixed?
span title=t('course.lesson_plan.items.fixed_desc')
= fa_icon 'lock'
=< format_datetime(effective_time[attribute], datetime_format)
- if ef... | - effective_time = item.time_for(course_user)
- reference_time = item.reference_time_for(course_user)
- if effective_time.is_a? Course::PersonalTime and effective_time.fixed?
span title=t('course.lesson_plan.items.fixed_desc')
= fa_icon 'lock'
=< format_datetime(effective_time[attribute], datetime_format) if effe... |
Remove placeholders from confirmation form | = content_for :title, t('.titles.site')
= render 'devise/shared/header'
.row
.large-5.medium-7.large-centered.columns
.login-box.animated.fadeIn
h3.text-center You're almost done!
hr
.large-11.large-centered.columns
= simple_form_for(resource, as: resource_name, url: confirm_path) do ... | = content_for :title, t('.titles.site')
= render 'devise/shared/header'
.row
.large-5.medium-7.large-centered.columns
.login-box.animated.fadeIn
h3.text-center You're almost done!
hr
.large-11.large-centered.columns
= simple_form_for(resource, as: resource_name, url: confirm_path) do ... |
Fix speaker description not display as text | - Globalize.with_locale(admin_current_resource_locale) do
= simple_form_for [:admin, @speaker] do |f|
= admin_box_body do
= f.input :name
= f.input :description
= f.input :avatar do
= f.input_field :avatar
-if @speaker.avatar.present?
= image_tag @speaker.avatar
... | - Globalize.with_locale(admin_current_resource_locale) do
= simple_form_for [:admin, @speaker] do |f|
= admin_box_body do
= f.input :name
= f.input :description, as: :text, input_html: { data: { editor: true }, rows: 20 }
= f.input :avatar do
= f.input_field :avatar
-if @speaker.... |
Add og:description tag for posts. | - content_for :header do
meta property="og:title" content=@post.to_title
meta property="og:type" content="article"
meta property="og:image" content=@post.user.try(:external_image_url)
meta property="og:url" content=post_url(@post)
= render @post
- if @post.replies.any?
section.post-replies
h2 Replies
... | - content_for :header do
meta property="og:title" content=@post.to_title
meta property="og:type" content="article"
meta property="og:image" content=@post.user.try(:external_image_url)
meta property="og:url" content=post_url(@post)
meta property="og:description" content=@post.to_summary
= render @post
- if @... |
Fix profile links depending on whether profile is blank | ul.nav.navbar-nav.navbar-right
- if user_signed_in?
li.dropdown
a.dropdown-toggle data-toggle="dropdown" href="#"
| Account
b.caret
ul.dropdown-menu
li
a href="#"
| Profile
li
a href="#"
| View schedule
... | ul.nav.navbar-nav.navbar-right
- if user_signed_in?
li.dropdown
a.dropdown-toggle data-toggle="dropdown" href="#"
| Account
b.caret
ul.dropdown-menu
li
= link_to 'Profile', user_profile_path(current_user)
= link_to 'Profile', user_profile_pat... |
Delete useless lines entered by accident | doctype html
html
head
title NineteenWu
meta name="viewport" content="width=device-width, initial-scale=1.0"
= stylesheet_link_tag "application", media: "all"
= csrf_meta_tags
body.signed_out
header#header
.navbar.navbar-static-top
.navbar-inner
.container
a.... | doctype html
html
head
title NineteenWu
meta name="viewport" content="width=device-width, initial-scale=1.0"
= stylesheet_link_tag "application", media: "all"
= csrf_meta_tags
body.signed_out
header#header
.navbar.navbar-static-top
.navbar-inner
.container
a.... |
Update home page to indicate the site is under maintainance | .home
.header-spacer.hidden-xs
.row
.col-md-12.text-center
h1 WaniKani to Anki exporter
.row
.col-md-12
img src="images/wanikanitoanki_logo.png" class="center-block img-responsive"
.row
.col-md-12.text-center
h4 Export your WaniKani reviews to Anki decks!
.row
.col-md-12.t... | .home
.header-spacer.hidden-xs
.row
.col-md-12.text-center
h1 WaniKani to Anki exporter
.row
.col-md-12
img src="images/wanikanitoanki_logo.png" class="center-block img-responsive"
.row
.col-md-12.alert.alert-danger.text-center
strong The WaniKani to Anki exporter is currently of... |
Fix styling for multiple, nested cards | - tip = exercise_tip.tip
.card.mb-2
.card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab"
.card-title.mb-0
a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#tip-collapse-#{exercise_tip.id}"
.clearfix role="bu... | - tip = exercise_tip.tip
.card class="#{exercise_tip.parent_exercise_tip_id? ? 'mt-2' : ''}"
.card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab"
.card-title.mb-0
a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#ti... |
Add button to create new clinic visit from MDM | .columns.medium-12
article
header
h2 Clinic Visits
.supplemental
span= "#{mdm.clinic_visits.length} of #{mdm.patient.summary.clinic_visits_count}"
span.noprint
= link_to "View All",
patient_clinic_visits_path(mdm.patient),
class: "b... | .columns.medium-12
article
header
h2 Clinic Visits
.supplemental
span= "#{mdm.clinic_visits.length} of #{mdm.patient.summary.clinic_visits_count}"
span.noprint
= link_to "View All",
patient_clinic_visits_path(mdm.patient),
class: "b... |
Fix replies form not submitting with ajax | .reply-block.collapse id="#{comment.id}"
= form_for [course, course.comments.build], url: comments_path do |f|
= f.hidden_field :course_id, value: course.id
= f.hidden_field :parent_id, value: comment.id
= f.text_area :content, class: 'form-control', onkeyup: 'autoheight(this)', placeholder: '我想說...'
... | .reply-block.collapse id="#{comment.id}"
= form_for [course, course.comments.build], url: comments_path, remote: :true do |f|
= f.hidden_field :course_id, value: course.id
= f.hidden_field :parent_id, value: comment.id
= f.text_area :content, class: 'form-control', onkeyup: 'autoheight(this)', placeholder... |
Put shorter block first for readability | = render layout: "renalware/patients/layout", locals: { title: "Archived Pathology Results" } do
- if rows.present?
p Most recent pathology results (max #{number_of_records} displayed). Hover over row header for investigation name.
table#observations
- rows.each do |row|
- header, *values = ro... | = render layout: "renalware/patients/layout", locals: { title: "Archived Pathology Results" } do
- if rows.empty?
p No results available for this patient.
- else
p Most recent pathology results (max #{number_of_records} displayed). Hover over row header for investigation name.
table#observations
... |
Change blog local to wordpress | ul.navbar-nav.nav
li#alerts-container ng-controller="AlertCtrl"
a.activity pop-up-alerts-dropdown="alertData.alerts" ng-class="{'with-information':alertData.alerts.length}"
span.number-circle.ng-cloak ng-show="alertData.alerts.length" {{alertData.alerts.length}}
ul.navbar-nav.nav.navbar-right
li= link_to(... | ul.navbar-nav.nav
li#alerts-container ng-controller="AlertCtrl"
a.activity pop-up-alerts-dropdown="alertData.alerts" ng-class="{'with-information':alertData.alerts.length}"
span.number-circle.ng-cloak ng-show="alertData.alerts.length" {{alertData.alerts.length}}
ul.navbar-nav.nav.navbar-right
li= link_to(... |
Disable average count as this breaks on some exercises... | h1 = t('.headline')
p
== t(".success_#{params[:outcome] ? 'with' : 'without'}_outcome", consumer: @consumer)
==< t(".finished_#{@consumer ? 'with' : 'without'}_consumer", consumer: @consumer, url: params[:url])
h2 = t('shared.statistics')
= row(label: '.score') do
p == t('shared.out_of', maximum_value: @submis... | h1 = t('.headline')
p
== t(".success_#{params[:outcome] ? 'with' : 'without'}_outcome", consumer: @consumer)
==< t(".finished_#{@consumer ? 'with' : 'without'}_consumer", consumer: @consumer, url: params[:url])
h2 = t('shared.statistics')
= row(label: '.score') do
p == t('shared.out_of', maximum_value: @submis... |
Change styling of related notes list | nav.notes
header
h3 = title ||= t('notes.index.title')
ul
- note.related_notes.notes_and_features.each do |note|
li = link_to note.headline, note_or_feature_path(note)
- note.related_notes.citations.each do |citation|
li = link_to citation.headline, citation_path(citation)
- note.inv... | nav.references
header
h3 = title ||= t('notes.index.title')
ul
- note.related_notes.notes_and_features.uniq.each do |note|
li = link_to note.headline, note_or_feature_path(note)
- note.related_notes.citations.uniq.each do |citation|
li = link_to citation.headline, citation_path(citation)
... |
Add Google Analytics tracking code | doctype html
html
head
title = title
= stylesheet_link_tag :application
= tag :link, href: feedburner_url, rel: :alternate, title: site_name, type: 'application/atom+xml'
= tag :meta, name: :viewport, content: 'width=device-width'
body
.wrapper
header
= link_to "/" do
h1 ... | doctype html
html
head
title = title
= stylesheet_link_tag :application
= tag :link, href: feedburner_url, rel: :alternate, title: site_name, type: 'application/atom+xml'
= tag :meta, name: :viewport, content: 'width=device-width'
body
.wrapper
header
= link_to "/" do
h1 ... |
Allow subtitle to be missing | header data-title="#{ document_title }"
h1 == title
- unless subtitle.nil?
h2 == subtitle
| header data-title="#{ document_title }"
h1 == title
- unless subtitle.blank?
h2 == subtitle
|
Fix cs galery on safari | .Panel
.u-defaultThenLargeMargin
.ContentFormatter.ContentFormatter--center
.cs-Gallery
- %w(america html jobs programadores zuckerberg ironman trabalho ruby).each do |name|
.cs-Gallery-cell
img.cs-Gallery-image(
src="#{image_path("case-studies/creators-school/gallery/#{name}... | .Panel
.u-defaultThenLargeMargin
.ContentFormatter.ContentFormatter--centerHorizontally
.cs-Gallery
- %w(america html jobs programadores zuckerberg ironman trabalho ruby).each do |name|
.cs-Gallery-cell
img.cs-Gallery-image(
src="#{image_path("case-studies/creators-school/gal... |
Add staff badge to show user page | .columns
.one-fourth.column
= avatar(@user, size: 230)
h2 = @user.name
.three-fourths.column
= if !is_nil(@current_user) && @current_user.name == @user.name do
.pb-3.clearfix
a.btn.btn-primary.float-right href="#{style_path(@conn, :new, @user.name)}" = gettext "New tweak"
= if Enum.cou... | .columns
.one-fourth.column
= avatar(@user, size: 230)
h2.d-inline-block = @user.name
= if @user.site_admin do
span.state.bg-blue.d-inline-block.mt-1.float-right
= gettext "Staff"
.three-fourths.column
= if !is_nil(@current_user) && @current_user.name == @user.name do
.pb-3.clear... |
Update `confirm contribution` email template | - contribution = @notification.contribution
p Olá, <strong>#{contribution.user.decorate.display_name}</strong>!
p Seu apoio para o projeto #{link_to(contribution.project.name, project_by_slug_url(permalink: contribution.project.permalink))} foi confirmado com sucesso.
- if contribution.project.thank_you.present?
p= c... | - contribution = @notification.contribution
p Olá, <strong>#{contribution.user.decorate.display_name}</strong>!
p Seu apoio para o projeto #{link_to(contribution.project.name, project_by_slug_url(permalink: contribution.project.permalink))} foi confirmado com sucesso.
- if contribution.project.thank_you.present?
p= c... |
Hide phantom staff from instructor container on course show page. | = div_for(current_course) do
h1
= format_inline_text(current_course.title)
- unless current_course_user
= render partial: 'course/user_registrations/registration'
- unless current_course.user?(current_user)
h2 = t('.description')
= format_html(current_course.description)
h2 = t('.instructor... | = div_for(current_course) do
h1
= format_inline_text(current_course.title)
- unless current_course_user
= render partial: 'course/user_registrations/registration'
- unless current_course.user?(current_user)
h2 = t('.description')
= format_html(current_course.description)
h2 = t('.instructor... |
Fix a bug that caused some game pages to 500 | - title @game.name
.container
h2 = content_for(:title)
h5 a speedgame
= render partial: 'shared/alerts'
.container
- @game.categories.each do |category|
- cache [:category_portrait, :v1, {category: category}] do
.well.col-xl-2.col-lg-3.col-md-4.col-sm-5 style="margin: .5em;"
a href=category_pa... | - title @game.name
.container
h2 = content_for(:title)
h5 a speedgame
= render partial: 'shared/alerts'
.container
- @game.categories.each do |category|
- cache [:category_portrait, :v1, {category: category}] do
- if category.best_known_run
.well.col-xl-2.col-lg-3.col-md-4.col-sm-5 style="marg... |
Hide TOC at small device |
- content_for(:title) { "#{@word.title}" }
.markdown
.page-header
h1 = @word.title
.row
.col-md-9.col-xs12
= raw markdown(add_word_link(@word.body))
.col-md-3.col-xs12
= raw toc(@word.body)
= link_to('Edit', edit_word_path(@word), class: 'btn btn-default') if user_signed_in?
- if ... |
- content_for(:title) { "#{@word.title}" }
.markdown
.page-header
h1 = @word.title
.row
.col-md-9.col-xs12
= raw markdown(add_word_link(@word.body))
.col-md-3.col-xs12
.hidden-xs.hidden-sm
= raw toc(@word.body)
= link_to('Edit', edit_word_path(@word), class: 'btn btn-default... |
Fix student statistics for my students | = page_header
- if current_course_user&.my_students&.any?
ul.nav.nav-tabs.tab-header role="tab-list"
li role="presentation"
a href="#my-students" aria-controls="my-students" role="tab" data-toggle="tab"
= t('.my_students_tab')
li role="presentation"
a href="#all-students" aria-controls="al... | = page_header
- if current_course_user&.my_students&.any?
ul.nav.nav-tabs.tab-header role="tab-list"
li role="presentation"
a href="#my-students" aria-controls="my-students" role="tab" data-toggle="tab"
= t('.my_students_tab')
li role="presentation"
a href="#all-students" aria-controls="al... |
Fix : add spacing between values | table(cellpadding="0" cellspacing="0" border="0" width="100%")
tr
td
h1(style="font-size:28px;margin-top:20px;margin-bottom:10px") Daily botnbot budget report
ul
- @context.budgets.each do |budget|
li
= "#{budget.page}/#{budget.label} (budget: #{budget.budget}) was"
... | table(cellpadding="0" cellspacing="0" border="0" width="100%")
tr
td
h1(style="font-size:28px;margin-top:20px;margin-bottom:10px") Daily botnbot budget report
ul
- @context.budgets.each do |budget|
li
= "#{budget.page}/#{budget.label} (budget: #{budget.budget}) was "
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.