Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Add read more link for search view | li
h3
= link_to highlight(search.title, params[:term]), search.decorate.show_page_link
- text = excerpt(search.content, params[:term], radius: 200)
- highlight = text.blank? ? truncate(search.content.html_safe, length: 200, separator: '.') : highlight(text, params[:term])
div = highlight
| li
h3 = link_to highlight(search.title, params[:term]), search.decorate.show_page_link
- text = excerpt(search.content, params[:term], radius: 200)
- highlight = text.blank? ? search.content : highlight(text, params[:term])
div = truncate_read_more(highlight, search.decorate.show_page_link)
|
Add the creating user to the worryboard filter | .row.search-form.filters
= simple_form_for query,
as: :q,
url: worryboard_path,
method: :get do |f|
.small-6.medium-2.large-2.columns
= f.input :patient_current_modality_description_id_eq,
collection: modalities,
label: "Modality"
.medium-2.large-3.col... | / This is required for now - its to do with the page title being a float and perhaps not clearing
.clear-both
.search-form.filters.filters--flex.max-w-screen-md
= simple_form_for query, as: :q, url: worryboard_path, method: :get do |f|
.flex.flex-col.sm:flex-row.items-end.pb-4
.w-full.sm:max-w-xs.pr-2
... |
Configure replies/vote btn to submit with remote link | .reply-list.collapse.in id="#{comment.id}_reply"
- comment.replies.each do |reply|
.replies
p = reply.content
.vote
span.date data-date="#{reply.created_at}"
span
|  ⋅ 
a href=''
i.fa.fa-chevron-up
= reply.score
a href... | .reply-list.collapse.in id="#{comment.id}_reply"
- comment.replies.each do |reply|
.replies
p = reply.content
.vote
span.date data-date="#{reply.created_at}"
span
|  ⋅ 
= link_to comment_vote_path(comment_id: reply.id, upvote: true), method: :post, r... |
Load js asynchonrously in stagig and production | doctype html
html lang="en"
head
meta charset="utf-8"
meta name="viewport" content="width=device-width, initial-scale=1.0"
title= page_title
= stylesheet_link_tag "application", media: :all
= javascript_include_tag "vendor/modernizr"
= csrf_meta_tag
body(class="#{yield(:body_class)}")
... | doctype html
html lang="en"
head
meta charset="utf-8"
meta name="viewport" content="width=device-width, initial-scale=1.0"
title= page_title
= stylesheet_link_tag "application", media: :all
= javascript_include_tag "vendor/modernizr"
= csrf_meta_tag
body(class="#{yield(:body_class)}")
... |
Remove featured section on homepage when no featured content is available | .home-page
/ for SEO
h1 style="display:none" brother.ly
section.home-page__slideshow
- @current_episodes.each do |episode|
.slideshow__slide.slideshow__slide--current data-youtube="#{episode.youtube_id}"
h2= link_to "Now Playing: #{episode.title}", episode
.hero-wrapper
iframe... | .home-page
/ for SEO
h1 style="display:none" brother.ly
section.home-page__slideshow
- @current_episodes.each do |episode|
.slideshow__slide.slideshow__slide--current data-youtube="#{episode.youtube_id}"
h2= link_to "Now Playing: #{episode.title}", episode
.hero-wrapper
iframe... |
Add hint for editing character data | h3 「種類」について
p
| この項目は同姓同名の2人のキャラがいたときの判別用に用意しています。
| そのため、この項目にはその作品のキャラだとわかる情報を入力して下さい。
| 特にこだわりがなければ、作品名を入力してもらえればと思います。
hr
h3 「誕生日」「年齢」などの自由入力欄の入力形式について
p
| 誕生日や年齢などは作品によって色々な表現がありそうなので、自由入力形式にしています。
| 入力形式は公式サイトやWikipediaなどを参考にして頂ければと思います。
| 英語の入力形式は<a href="https://myanimelist.net/" target="_blank">M... | |
Hide languages switch for reply comment page | nav class="top-bar" data-topbar='' role="navigation" aria-label='navigation' itemscope='' itemtype='http://schema.org/SiteNavigationElement' data-options="mobile_show_parent_link:true; custom_back_text"
ul.title-area
li.name: h1 = link_to @setting.title, root_path
li.toggle-topbar.menu-icon
a href="#"
... | nav class="top-bar" data-topbar='' role="navigation" aria-label='navigation' itemscope='' itemtype='http://schema.org/SiteNavigationElement' data-options="mobile_show_parent_link:true; custom_back_text"
ul.title-area
li.name: h1 = link_to @setting.title, root_path
li.toggle-topbar.menu-icon
a href="#"
... |
Remove citation info from impressum. | h3 Impressum
p
| Angaben gemäß § 5 TMG:
br
p
| Silke Tracht
br
| Steinmühle Lemgo
br
| Entruper Weg 88
br
| 32657 Lemgo
br
br
h4 Kontakt:
p
| Telefon: 05281 - 13889
br
| E-Mail: silke@steinmuehle-lemgo.de
br
br
h5 Quellenangaben für die verwendeten Bilder und Grafiken:
p
a href="http... | h3 Impressum
p
| Angaben gemäß § 5 TMG:
br
p
| Silke Tracht
br
| Steinmühle Lemgo
br
| Entruper Weg 88
br
| 32657 Lemgo
br
br
h4 Kontakt:
p
| Telefon: 05281 - 13889
br
| E-Mail: silke@steinmuehle-lemgo.de
br
br
/h5 Quellenangaben für die verwendeten Bilder und Grafiken:
/p
/a href="h... |
Rename "Remaining jobs" to enqueued jobs, because that's what sidekiq reports. | .row
.large-12.columns
h1 Registered workflows
table.workflows data-workflows=@workflows.to_json
thead
th ID
th Name
th Progress
th Status
th Started at
th Finished at
th Action
tbody
tr
td.text-center colspan=4 Loading…
... | .row
.large-12.columns
h1 Registered workflows
table.workflows data-workflows=@workflows.to_json
thead
th ID
th Name
th Progress
th Status
th Started at
th Finished at
th Action
tbody
tr
td.text-center colspan=4 Loading…
... |
Remove disable-with on contact form | = simple_form_for contact,
url: patient_letters_contacts_path(patient),
html: { autocomplete: "off" },
wrapper: "horizontal_form" do |f|
.row.errors-container
.large-12.columns
ul.error-messages
.row
.large-12.columns
= render "/renalware/letters/contacts/form",
f: f... | = simple_form_for contact,
url: patient_letters_contacts_path(patient),
html: { autocomplete: "off" },
wrapper: "horizontal_form" do |f|
.row.errors-container
.large-12.columns
ul.error-messages
.row
.large-12.columns
= render "/renalware/letters/contacts/form",
f: f... |
Add links to courses and users in instance management | = content_tag_for(:tr, instance)
th
a
= link_to format_inline_text(instance.name), \
admin_instance_admin_url(host: instance.host, port: nil)
td = instance.host
td = instance.user_count
td = instance.course_count
td
= edit_button([:admin, instance]) if can?(:edit, instance)
... | = content_tag_for(:tr, instance)
th
a
= link_to format_inline_text(instance.name), \
admin_instance_admin_url(host: instance.host, port: nil)
td = instance.host
td = link_to instance.user_count, admin_instance_users_url(host: instance.host)
td = link_to instance.course_count, admin_... |
Use pointpin to get the location for a user's IP | article.simple-rounded-box.cms
h2= @user.name
dl
dt Email
dd= @user.email
dt Signed up with Google?
dd= @user.signed_up_with_google
dt Clever Id (if exists)
dd= @user.clever_id
dt Token (if exists)
dd= @user.token
dt Username
dd= @user.username
dt Role
dd= @user.role... | article.simple-rounded-box.cms
h2= @user.name
dl
dt Email
dd= @user.email
dt Signed up with Google?
dd= @user.signed_up_with_google
dt Clever Id (if exists)
dd= @user.clever_id
dt Token (if exists)
dd= @user.token
dt Username
dd= @user.username
dt Role
dd= @user.role... |
Remove created_at from journals index | h1= @journaled.contact.full_name
h1= t_title(:index, Journal)
.table-responsive
table.table
thead
tr
th= t_attr(:created_at)
th= t_attr(:category)
th= t_attr(:text)
th= t_attr(:author)
th
tbody
- @journaled.journals.ea... | h1= @journaled.contact.full_name
h1= t_title(:index, Journal)
.table-responsive
table.table
thead
tr
th= t_attr(:category)
th= t_attr(:text)
th= t_attr(:author)
th
tbody
- @journaled.journals.each do |record|
tr
... |
Add author's note to about page | .outer
.wrapper
h2 Read a letter
h1 Write a letter
br
.explanation
p
| Nobody writes letters anymore. Let's try and fix that.
p
| Click the link below and you'll see two things:
#demo
#left
| On the left will be a letter written by the last person who... | .outer
.wrapper
h2 Read a letter
h1 Write a letter
br
.explanation
p
| Nobody writes letters anymore. Let's try and fix that.
p
| Click the link below and you'll see two things:
#demo
#left
| On the left will be a letter written by the last person who... |
Replace another TODO -> guide link. | ruby:
claimed_pods = params[:successfully_claimed] != nil
pod_message = claimed_pods ? 'pod'.pluralize(params[:successfully_claimed].size) : nil
- if claimed_pods
p You have successfully claimed the following #{ pod_message } and are now registered as #{params[:successfully_claimed].size == 1 ? 'its' : 'their'} ... | ruby:
claimed_pods = params[:successfully_claimed] != nil
pod_message = claimed_pods ? 'pod'.pluralize(params[:successfully_claimed].size) : nil
- if claimed_pods
p You have successfully claimed the following #{ pod_message } and are now registered as #{params[:successfully_claimed].size == 1 ? 'its' : 'their'} ... |
Include new assets in user events layout | doctype html
html lang="en"
head
meta charset="utf-8"
meta http-equiv="X-UA-Compatible" content="IE=edge"
meta name="viewport" content="width=device-width, initial-scale=1"
meta name="description" content="Submit an event for inclusion in the West Cornwall Events Calendar"
meta name="author" content="Tony Ed... | doctype html
html lang="en"
head
meta charset="utf-8"
meta http-equiv="X-UA-Compatible" content="IE=edge"
meta name="viewport" content="width=device-width, initial-scale=1"
meta name="description" content="Submit an event for inclusion in the West Cornwall Events Calendar"
meta name="author" content="Tony Ed... |
Update User's dashboard subscriptions tab | .table_content
table.table.table-striped
thead
th= t('.table.project')
th= t('.table.subscription_date')
th= t('.table.status')
th
- subscriptions.each do |subscription|
tr[id="subscription_#{subscription.id}"]
td.project_name
= link_to subscription.projec... | .table_content
table.table.table-striped
thead
th= t('.table.project')
th= t('.table.subscription_date')
th= t('.table.status')
th
- subscriptions.each do |subscription|
tr[id="subscription_#{subscription.id}"]
td.project_name
= link_to subscription.projec... |
Update address select, to track addresses by id | section.address
section.existing-address(ng-show='existingAddress')
select(ng-options='addr as addr.shortAddress() for addr in addresses' ng-model='address' ng-disabled='disabled')
p(ng-hide='disabled')
a.new-address(ng-click='toggleExistingAddress()')
| {{:: 'address.use_new' | translate}}
... | section.address
section.existing-address(ng-show='existingAddress')
select(ng-options='addr as addr.shortAddress() for addr in addresses track by id' ng-model='address' ng-disabled='disabled')
p(ng-hide='disabled')
a.new-address(ng-click='toggleExistingAddress()')
| {{:: 'address.use_new' | tra... |
Move pagination to the right hand side of the page | .navbar.navbar-default.navbar-fixed-bottom
.container-fluid
nav
ul.nav.navbar-nav
li
ul.pagination.no-padding
- (0...5).each do |i|
li
= link_to "#{i}", "#"
| .navbar.navbar-default.navbar-fixed-bottom
.container-fluid
nav.pull-right
ul.nav.navbar-nav
li
ul.pagination.no-padding
- (0...5).each do |i|
li
= link_to "#{i}", "#"
|
Make exist site infections table less responsive | table.responsive
thead
th.col-width-9
th.col-width-date Diagnosed on
th Outcome
th Treatment
th.col-width-date Updated on
tbody
- exit_site_infections.each do |e|
tr valign="top"
td valign="top"
- unless current_user.has_role?(:read_only)
= link_to "View",
... | table
thead
th.col-width-9
th.col-width-date Diagnosed on
th Outcome
th Treatment
th.col-width-date Updated on
tbody
- exit_site_infections.each do |e|
tr valign="top"
td valign="top"
- unless current_user.has_role?(:read_only)
= link_to "View",
... |
Use full path for twitter cards URL | - content_for :additional_meta do
meta name="twitter:card" content="photo"
meta name="twitter:image" content=@content.file.url
img src=@content.file.url
| - content_for :additional_meta do
meta name="twitter:card" content="photo"
meta name="twitter:image" content="#{root_url}#{@content.file.url}"
img src=@content.file.url
|
Change button, its route, jQuery & JS in separate file | = form_for @instance, url: {action: "create"}, html: {class: 'form-horizontal', role: 'form', id: 'new-instance-form' } do |f|
== render 'devise/shared/error_messages'
.form-group
= f.label :hostname, class: "col-sm-2 control-label"
.col-sm-6
= f.text_field :name, class: "form-control", autofocus: tru... | = form_for @instance, url: new_charge_path, method: "GET", html: {class: 'form-horizontal', role: 'form', id: 'new-instance-form' } do |f|
== render 'devise/shared/error_messages'
.form-group
= f.label :hostname, class: "col-sm-2 control-label"
.col-sm-6
= f.text_field :name, class: "form-control", au... |
Apply expected div to test case question form. | - public_test_cases = test_cases.select(&:public_test?)
- private_test_cases = test_cases.select(&:private_test?)
- evaluation_test_cases = test_cases.select(&:evaluation_test?)
h2 = t('.test_cases')
table.table.table-striped.table-hover
thead
tr
th = t('.identifier')
th = t('.expression')
th ... | - public_test_cases = test_cases.select(&:public_test?)
- private_test_cases = test_cases.select(&:private_test?)
- evaluation_test_cases = test_cases.select(&:evaluation_test?)
h2 = t('.test_cases')
table.table.table-striped.table-hover
thead
tr
th = t('.identifier')
th = t('.expression')
th ... |
Update form_for to rails 4. | = form_for @pv_query, :validate => true, remote: true, class: 'form-horizontal' do |f|
= render 'shared/error_messages', object: f.object
fieldset.row
.col-xs-12.col-sm-4
.form-group
= f.label :postcode_id, 'Postcode', min: '221', max: '9999', class: 'col-xs-3 col-sm-5 control-label'
= f.n... | = form_for @pv_query, :validate => true, remote: true, html: {class: 'form-horizontal'} do |f|
= render 'shared/error_messages', object: f.object
fieldset.row
.col-xs-12.col-sm-4
.form-group
= f.label :postcode_id, 'Postcode', min: '221', max: '9999', class: 'col-xs-3 col-sm-5 control-label'
... |
Clarify what 'created at' time represents | .actions
= link_to("Edit", edit_project_path(project))
- if project.github_url
= ' | '
= link_to("Github", project.github_url)
- if project.github_wiki_url
= ' | '
= link_to("Wiki", project.github_wiki_url)
.status
h1= link_to(project.name, project_path(id: project.id))
.revisions
- projec... | .actions
= link_to("Edit", edit_project_path(project))
- if project.github_url
= ' | '
= link_to("Github", project.github_url)
- if project.github_wiki_url
= ' | '
= link_to("Wiki", project.github_wiki_url)
.status
h1= link_to(project.name, project_path(id: project.id))
.revisions
- projec... |
Change the Activate button styles | - if (can? :activate, location) && location.activated?
= link_to t('shared.deactivate'), "/manage/#{location.model_name.route_key}/#{location.id}/deactivate", method: :patch, class: 'button -secondary'
- if (can? :deactivate, location) && location.deactivated?
= link_to t('shared.activate'), "/manage/#{location.mod... | - if (can? :activate, location) && location.activated?
= link_to t('shared.deactivate'), "/manage/#{location.model_name.route_key}/#{location.id}/deactivate", method: :patch, class: 'button -secondary'
- if (can? :deactivate, location) && location.deactivated?
= link_to t('shared.activate'), "/manage/#{location.mod... |
Fix buy list to display proper cells | table.table.table-striped
thead
tr(ng-if="buys.length")
th=t('buys.buyer_details')
th=t('buys.bought_products')
th
tr(ng-if="!buys.length")
td.text-center(colspan="3")
.row
.col-xs-12
p=t('buys.nothing_bought')
tbody
tr(ng-repeat="buy in buys|orderBy... | table.table.table-striped
thead
tr(ng-if="buys.length")
th.col-xs-6(colspan=2)=t('buys.buyer_details')
th(colspan=2)=t('buys.bought_products')
tr(ng-if="!buys.length")
td.text-center(colspan="3")
.row
.col-xs-12
p=t('buys.nothing_bought')
tbody
tr(ng-repea... |
Fix current_entity when no current_user | doctype html
head
meta name="viewport" content="width=device-width, initial-scale=1.0"
== csrf_meta_tag(:name => 'csrf-token')
link rel="stylesheet" type="text/css" href=asset_path("application.css")
body
.navbar.navbar-static-top
.navbar-inner
.brand
a href=full_path('/') StatusApp
-... | doctype html
head
meta name="viewport" content="width=device-width, initial-scale=1.0"
== csrf_meta_tag(:name => 'csrf-token')
link rel="stylesheet" type="text/css" href=asset_path("application.css")
body
.navbar.navbar-static-top
.navbar-inner
.brand
a href=full_path('/') StatusApp
-... |
Fix admin feedback edit link font size | strong = feedback_field_value[:label]
.form-group class=feedback_field
label.form-label Key strength
.form-value.no-js-update
p = feedback.public_send("#{feedback_field}_strength").presence || content_tag(:i, "No feedback has been added yet")
.input.form-group
= f.input "#{feedback_field}_strength", as: :... | strong = feedback_field_value[:label]
.form-group class=feedback_field
label.form-label Key strength
.form-value.no-js-update
p = feedback.public_send("#{feedback_field}_strength").presence || content_tag(:i, "No feedback has been added yet")
.input.form-group
= f.input "#{feedback_field}_strength", as: :... |
Add support for the window option for a link to block image | = block_with_caption :bottom, {:class=>'imageblock', :style=>style_value(text_align: (attr :align), float: (attr :float))}
= html_tag_if (attr? :link), :a, {:class=>'image', :href=>(attr :link)}
img src=image_uri(attr :target) alt=(attr :alt) width=(attr :width) height=(attr :height)
| = block_with_caption :bottom, {:class=>'imageblock', :style=>style_value(text_align: (attr :align), float: (attr :float))}
= html_tag_if (attr? :link), :a, {:class=>'image', :href=>(attr :link), :target=>(attr :window), :rel=>link_rel}
img src=image_uri(attr :target) alt=(attr :alt) width=(attr :width) height=(at... |
Remove alert message explaining issues from previous weeks | .row
.col-md-12
.alert.alert-info role="alert"
p
strong Notice:
| From Monday, June 13 until Tuesday, June 21, Echo For Trello was not generating any cards due to a server issue that I was unaware of. The problem has been corrected, so your cards should be automatically generated again as e... | .row
.col-md-12
h2.text-center Select the board where you want to create a recurring card
- @boards.in_groups_of(3, false) do |group|
.row
- group.each do |board|
= link_to board_path(board["id"]), class: 'board-link' do
.col-md-4.board-view.text-center
p class=(board["prefs"]["back... |
Update heading tags to be hierarchical | li class="repo-item #{ repo.weight }" data-language="#{ repo.language if repo.language }"
= link_to repo
header.repo-item-header
h4.repo-item-title = repo.name
span.repo-item-issues
span.warning-svg.issue-icon
= repo.issues_count
| Issues
p.repo-item-description = repo.de... | li class="repo-item #{ repo.weight }" data-language="#{ repo.language if repo.language }"
= link_to repo
header.repo-item-header
h3.repo-item-title = repo.name
span.repo-item-issues
span.warning-svg.issue-icon
= repo.issues_count
| Issues
p.repo-item-description = repo.de... |
Tweak -- add hint to password confirmation as well. | #header-mid
#title-mid
| User Registration
.clear
#content
#box[style="padding-top: 50px;"]
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
= f.error_notification
.form-inputs
= f.input :email, required: true, autofocus: true
... | #header-mid
#title-mid
| User Registration
.clear
#content
#box[style="padding-top: 50px;"]
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
= f.error_notification
.form-inputs
= f.input :email, required: true, autofocus: true
... |
Add view for email request | .row
.col-lg-6
h1 Add email information
/= render 'shared/errors_messages', resource: @user
= form_tag register_path, method: :post do
.form-group
= label_tag 'Email'
= text_field_tag 'auth_hash[info][email]', :email, class: 'form-control'
p= submit_tag 'Add', class: 'btn bt... | |
Add demo article to show syntax and examples | ---
title: Demo Article
tags: Deodorant
disqus_id: demo-article
img: diy-deoderant-long.jpg
published: false
---
p This is a demo article. It shows the syntax to insert images, create links, make bold words and more.
p Let's start with a simple image. The first parameter is the function name: "blog_img". Next, you ... | |
Add html5shiv polyfill using cdn. Add Modernizr development version using CDN. Adding comments to explain that the user needs to build its own version for production. | head
meta charset='utf-8'
title = page_title
meta name='description' content='#{page_description}'
meta name='keywords' content='#{page_keywords}'
meta name='author' content=''
meta http-equiv='X-UA-Compatible' content='IE=edge'
meta content='on' http-equiv='cleartype'
meta content='True' name='Handheld... | head
meta charset='utf-8'
title = page_title
meta name='description' content='#{page_description}'
meta name='keywords' content='#{page_keywords}'
meta name='author' content=''
meta http-equiv='X-UA-Compatible' content='IE=edge'
meta content='on' http-equiv='cleartype'
meta content='True' name='Handheld... |
Send directly a proxy to ordered collections | Extension { #name : 'OrderedCollection' }
{ #category : '*GToolkit-GemStone' }
OrderedCollection >> asGtRsrProxyObjectForConnection: aRsrConnection [
"Answer the receiver with unsupported objects converted to GtRsrProxyServiceServers.
Ideally we would look up objects in the connection and use the same proxy, but tha... | Extension { #name : 'OrderedCollection' }
{ #category : '*GToolkit-GemStone' }
OrderedCollection >> asGtRsrProxyObjectForConnection: aRsrConnection [
"Answer the receiver with unsupported objects converted to GtRsrProxyServiceServers.
Ideally we would look up objects in the connection and use the same proxy, but tha... |
Remove space to trigger CI again | Class {
#name : #DADependencyCheckerTest,
#superclass : #TestCase,
#instVars : [
'checker'
],
#category : #'Tool-DependencyAnalyser-Test-Core'
}
{ #category : #running }
DADependencyCheckerTest >> setUp [
super setUp.
checker := DADependencyChecker new
]
{ #category : #tests }
DADependencyCheckerTest >> tes... | Class {
#name : #DADependencyCheckerTest,
#superclass : #TestCase,
#instVars : [
'checker'
],
#category : #'Tool-DependencyAnalyser-Test-Core'
}
{ #category : #running }
DADependencyCheckerTest >> setUp [
super setUp.
checker := DADependencyChecker new
]
{ #category : #tests }
DADependencyCheckerTest >> test... |
Update interaction for execute a block after finished | "
A number animation to handle a number and interpolate between values
"
Class {
#name : #RTNumberAnimation,
#superclass : #RTAnimation,
#instVars : [
'time',
'blockToExcute',
'animatedValue'
],
#category : #'Roassal2-Animation'
}
{ #category : #api }
RTNumberAnimation >> during: seconds [
... | "
A number animation to handle a number and interpolate between values
"
Class {
#name : #RTNumberAnimation,
#superclass : #RTAnimation,
#instVars : [
'time',
'blockToExcute',
'animatedValue',
'afterBlock'
],
#category : #'Roassal2-Animation'
}
{ #category : #accessing }
RTNumberAnimation ... |
Remove support for mc driven packages. Adopted to latest iceberg 0.7 with dialog to choose repository for commit | execution
execute
| icePackages iceRepos mcPackages |
packages ifEmpty: [ ^IceRepositoriesBrowser open ].
icePackages := packages select: [ :each | [each iceRepository. true] ifError: [false]].
iceRepos := icePackages collect: [ :each | each iceRepository ] as: Set.
iceRepos do: [ :each | IceSynchronizeBrowser ... | execution
execute
| repoBrowser commitBrowser repos targetRepo |
repoBrowser := self class environment at: #IceTipRepositoriesBrowser ifAbsent: [
^ self inform: 'Iceberg 0.7 and higher is required'].
commitBrowser := self class environment at: #IceTipCommitBrowser ifAbsent: [
^ self inform: 'Iceberg 0.7 and hi... |
Revert "Should not load the Seaside Parasol Tests" | "If Seaside loads Parasol and Parasol loads Seaside, an infinite reload loop can occur. For GemStone, the infinite
reloade loop has been broken. Travis tests require Seaside to be installed, so install Seaside, explicitly"
Metacello new
baseline:'Seaside3';
repository: 'github://SeasideSt/Seaside:master/repository';... | "If Seaside loads Parasol and Parasol loads Seaside, an infinite reload loop can occur. For GemStone, the infinite
reloade loop has been broken. Travis tests require Seaside to be installed, so install Seaside, explicitly"
Metacello new
baseline:'Seaside3';
repository: 'github://SeasideSt/Seaside:master/repository';... |
Use SharedPriorityUniqueQueue in TaskIt queues | Class {
#name : #BlTktCommonPriorityQueueWorkerPool,
#superclass : #BlTktCommonQueueWorkerPool,
#category : #'Bloc-TaskIt-Workers'
}
{ #category : #initialization }
BlTktCommonPriorityQueueWorkerPool >> initialize [
super initialize.
taskQueue := AtomicSharedPriorityQueue new.
]
| Class {
#name : #BlTktCommonPriorityQueueWorkerPool,
#superclass : #BlTktCommonQueueWorkerPool,
#category : #'Bloc-TaskIt-Workers'
}
{ #category : #initialization }
BlTktCommonPriorityQueueWorkerPool >> initialize [
super initialize.
taskQueue := SharedPriorityUniqueQueue new.
]
|
Fix invalid html in page header template | <div id="page-header">
<ul class="links" id="page-menu">
<li><a href="/">Home</a></li
><li><form action="/packages/search" method="get" class="search"><button type="submit" />Search </button><input type="text" name="terms" /></form></li
><li><a href="/packages/">Browse</a></li
><li><a href="/recent">What's new</a>... | <div id="page-header">
<ul class="links" id="page-menu">
<li><a href="/">Home</a></li
><li><form action="/packages/search" method="get" class="search"><button type="submit">Search </button><input type="text" name="terms" /></form></li
><li><a href="/packages/">Browse</a></li
><li><a href="/recent">What's new</a></... |
Fix stray </div> in page-header template | <div id="page-header">
<ul class="links" id="page-menu">
<li><a href="/">Home</a></li>
<li>
<form action="/packages/search" method="get" class="search">
<button type="submit">Search </button>
<input type="text" name="terms" />
</form>
</li>
<li><a href="/packages/">B... | <div id="page-header">
<ul class="links" id="page-menu">
<li><a href="/">Home</a></li>
<li>
<form action="/packages/search" method="get" class="search">
<button type="submit">Search </button>
<input type="text" name="terms" />
</form>
</li>
<li><a href="/packages/">B... |
Make sure write streams are closed | Class {
#name : #MCDirectoryRepositoryTest,
#superclass : #MCRepositoryTest,
#instVars : [
'directory'
],
#category : #'Monticello-Tests-Repository'
}
{ #category : #actions }
MCDirectoryRepositoryTest >> addVersion: aVersion [
| file |
file := (directory / aVersion fileName) asFileReference binaryWriteStream... | Class {
#name : #MCDirectoryRepositoryTest,
#superclass : #MCRepositoryTest,
#instVars : [
'directory'
],
#category : #'Monticello-Tests-Repository'
}
{ #category : #actions }
MCDirectoryRepositoryTest >> addVersion: aVersion [
(directory / aVersion fileName) asFileReference
binaryWriteStreamDo: [ :stream ... |
Return to use RTData because this bug has been fixed by A. Bergel | as yet unclassified
build
|b normalize lb|
b := RTGrapher new.
b extent: 400 @ 200.
normalize := RTMultiLinearColorForIdentity new
objects: self legends;
colors: (RTColorPalette qualitative colors: 9 scheme: 'Set1').
1 to: legends size do: [ :i|
|ds|
ds := RTDataSet new.
ds noDot.
ds points: (d... | as yet unclassified
build
|b normalize lb|
b := RTGrapher new.
b extent: 400 @ 200.
normalize := RTMultiLinearColorForIdentity new
objects: self legends;
colors: (RTColorPalette qualitative colors: 9 scheme: 'Set1').
1 to: legends size do: [ :i|
|ds|
ds := RTData new.
ds noDot.
ds points: (data... |
Add Apache 2.0 header and generated code warning | RiakMessageCodes(packageName, codes) ::= <<
package <packageName>;
public final class RiakMessageCodes
{
<codes>
}
>>
| RiakMessageCodes(packageName, codes) ::= <<
/*
* Copyright 2014 Basho Technologies Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
Add logging to packagesToAnalyse and reject nil packages | Class {
#name : #GtClassWithCommentsContainingMissingReferences,
#superclass : #GtPharoConstraint,
#traits : 'TGtDocumentInvalidCommentsConstraint',
#classTraits : 'TGtDocumentInvalidCommentsConstraint classTrait',
#category : #'GToolkit-Constraints'
}
{ #category : #accessing }
GtClassWithCommentsContainingMissi... | Class {
#name : #GtClassWithCommentsContainingMissingReferences,
#superclass : #GtPharoConstraint,
#traits : 'TGtDocumentInvalidCommentsConstraint',
#classTraits : 'TGtDocumentInvalidCommentsConstraint classTrait',
#category : #'GToolkit-Constraints'
}
{ #category : #accessing }
GtClassWithCommentsContainingMissi... |
Fix a spurious window focusing | 'From Cuis 6.0 [latest update: #5305] on 23 June 2022 at 11:21:01 am'!
!SystemWindow methodsFor: 'drawing' stamp: 'jmv 6/23/2022 09:50:02'!
visible: aBoolean
self visible == aBoolean
ifTrue: [ ^ self ].
super visible: aBoolean.
aBoolean ifTrue: [
self activate ]! !
| |
Fix a walkback attempt to browse + cancel | 'From Cuis 6.0 [latest update: #5096] on 4 April 2022 at 5:43:09 pm'!
!SmalltalkEditor methodsFor: 'do-its' stamp: 'jmv 4/4/2022 17:41:25'!
afterCompiling: aSourceCode do: aBlock ifFail: failBlock
| context provider receiver |
provider := self codeProvider.
(provider respondsTo: #doItReceiver)
ifTrue: [
re... | |
Fix a blank screen when starting Cuis with a local clock that's earlier than when the image was saved (maybe due to time zone change) | 'From Cuis 5.0 of 7 November 2016 [latest update: #3117] on 20 June 2017 at 11:19:24 pm'!
!WorldState methodsFor: 'initialization' stamp: 'jmv 6/20/2014 20:24:55'!
clearWaitDelay
waitDelay ifNotNil: [
waitDelay unschedule.
waitDelay _ nil ].
"Needed if for some reason Cuis is started with an earlier DateTime tha... | |
Fix to simulated (i.e. debugger) primitive call. Thanks Hernan. | 'From Cuis 5.0 [latest update: #4506] on 29 December 2020 at 7:19:51 pm'!
!MethodContext methodsFor: 'instruction decoding (closures)' stamp: 'HAW 12/29/2020 19:19:31'!
callPrimitive: primNumber
"Evaluate the primitive, either normal or inlined, and answer the new context resulting from that
(either the sender if a... | |
Fix shout on empty Workspace. Thanks Ken. | 'From Cuis 5.0 of 7 November 2016 [latest update: #3382] on 27 July 2018 at 6:17:35 pm'!
!SHParserST80 methodsFor: 'parse' stamp: 'jmv 7/27/2018 18:16:30'!
parse: isAMethod
"Parse the receiver's text. If isAMethod is true
then treat text as a method, if false as an
expression with no message pattern"
| con... | |
Verify that number of states does not match with size of matrix | "
Verify that number of states does not match with size of matrix
"
Class {
#name : #K2StateSizeDoesNotMachMatrixSizeExceptions,
#superclass : #K2CTMCExceptions,
#category : #'Kendrick2-CTMC-Exceptions'
}
| |
Make CPUWatcher tally reset on each period, as most people would expect. | 'From Cuis 5.0 [latest update: #3840] on 21 August 2019 at 12:30:57 pm'!
!CPUWatcher methodsFor: 'startup-shutdown' stamp: 'pb 8/21/2019 12:23:45'!
monitorProcessPeriod: secs sampleRate: msecs suspendPorcine: aBoolean
| delay |
self stopMonitoring.
watcher _ [
delay _ Delay forMilliseconds: msecs truncated.
[ | t... | |
Make Dictionary>>storeOn: be determistic if possible, to avoid spurious decompiler test failures. | 'From Cuis 5.0 [latest update: #4381] on 24 September 2020 at 3:51:28 pm'!
!Dictionary methodsFor: 'printing' stamp: 'jmv 9/24/2020 15:49:52'!
storeOn: aStream
| noneYet |
aStream nextPutAll: '(('.
aStream nextPutAll: self class name.
aStream nextPutAll: ' new)'.
noneYet _ true.
self keysSortedSafely do: [ :key ... | |
Set menu stay-up buttons color to transparent, so automatically gets the default menu color and icon is more visible | 'From Cuis 4.2 of 25 July 2013 [latest update: #2577] on 16 November 2015 at 2:55:28.617298 am'!
!MenuMorph methodsFor: 'construction' stamp: 'len 11/16/2015 02:52'!
addStayUpIcons
| closeBox pinBox w |
Preferences optionalButtons ifFalse: [ ^self ].
(self valueOfProperty: #hasStayUpIcons ifAbsent: [ false ])
ifT... | |
Fix autoselect, for instance, for class references. | 'From Cuis 5.0 [latest update: #3878] on 19 September 2019 at 5:33:19 pm'!
!TextEditor methodsFor: 'new selection' stamp: 'jmv 9/19/2019 17:31:32'!
messageSendsRanges: aRanges
"aRanges must be notEmpty"
selectionStartBlocks := OrderedCollection new.
selectionStopBlocks := OrderedCollection new.
aRanges do: [ :ra... | |
Fix to Base64MimeConverter. Thanks Nicola. | 'From Cuis 5.0 [latest update: #4884] on 24 September 2021 at 11:22:34 am'!
!Base64MimeConverter class methodsFor: 'services' stamp: 'NM 9/24/2021 15:05:45'!
mimeEncode: aCollectionOrStream to: outStream
self new
dataStream: ((aCollectionOrStream is: #Stream)
ifTrue: [aCollectionOrStream]
ifFalse: [ReadStream... | |
Fix to BitBltCanvas when displaying a 16bpp Form. Thanks Phil. | 'From Cuis 5.0 of 7 November 2016 [latest update: #3134] on 9 August 2017 at 11:37:48 am'!
!BitBltCanvas methodsFor: 'drawing-images' stamp: 'jmv 8/9/2017 11:37:34'!
image: aForm at: aPoint sourceRect: sourceRect
"Draw a translucent image using the best available way of representing translucency.
Note: This will be ... | |
Create CTMC with four states | Class {
#name : #K2CMTCWithFourStatesTest,
#superclass : #TestCase,
#category : #'Kendrick2-CTMC-Tests'
}
{ #category : #'as yet unclassified' }
K2CMTCWithFourStatesTest >> createCTMCWithFourStates [
^ [
[ -1, 1, 0, 0 ],
[ 5, -10, 5, 0 ],
[ 0, 8, -12, 4 ],
[ 0, 0, 10, -10 ]
] asCTMC.
]
| |
Add octavia support for kubernetes >=1.9 | {{/* vim: set filetype=gotexttmpl: */ -}}
[Global]
auth-url = {{ required "missing openstack.authURL" .Values.openstack.authURL }}
username = {{ required "missing openstack.username" .Values.openstack.username }}
password = {{ required "missing openstack.password" .Values.openstack.password }}
domain-name = {{ required... | {{/* vim: set filetype=gotexttmpl: */ -}}
[Global]
auth-url = {{ required "missing openstack.authURL" .Values.openstack.authURL }}
username = {{ required "missing openstack.username" .Values.openstack.username }}
password = {{ required "missing openstack.password" .Values.openstack.password }}
domain-name = {{ required... |
Remove old rsc tree in the perspective.default.all.all.xml file generated by add-module. | <hbox flex="1">
<stack width="250">
<vbox flex="1" style="opacity:0.99">
<cnavigationtree flex="1" id="navigationTree"/>
</vbox>
<chelppanel hidden="true" flex="1" />
</stack>
<splitter collapse="before">
<wsplitterbutton />
</splitter>
<deck flex="1" anonid="mainViewDeck">
<vbox flex="1" anonid="docu... | <hbox flex="1">
<stack width="250">
<vbox flex="1" style="opacity:0.99">
<cnavigationtree flex="1" id="navigationTree"/>
</vbox>
<chelppanel hidden="true" flex="1" />
</stack>
<splitter collapse="before">
<wsplitterbutton />
</splitter>
<deck flex="1" anonid="mainViewDeck">
<vbox flex="1" anonid="docu... |
Fix access to env variable from qtmake | win32 {
HOMEDIR += $$(USERPROFILE)
}
else {
HOMEDIR += $$(HOME)
}
% for include in includes:
% if include.startswith(user_home_dir):
INCLUDEPATH += "$$(HOMEDIR){{include.replace(user_home_dir, "")}}"
% else:
INCLUDEPATH += "{{include}}"
% end
% end
% for define in defines:
DEFINES += "{{define}}"
% end
OTHER... | win32 {
HOMEDIR += $$(USERPROFILE)
}
else {
HOMEDIR += $$(HOME)
}
% for include in includes:
% if include.startswith(user_home_dir):
INCLUDEPATH += "$${HOMEDIR}{{include.replace(user_home_dir, "")}}"
% else:
INCLUDEPATH += "{{include}}"
% end
% end
% for define in defines:
DEFINES += "{{define}}"
% end
OTHER... |
Fix error when user uses chain/mixin | import lodash from '<%= lodashPath %>/chain/lodash';
import LodashWrapper from '<%= lodashPath %>/internal/LodashWrapper';
import create from '<%= lodashPath %>/object/create';
import mixin from '<%= lodashPath %>/utility/mixin';
<% _.each(config, function(method) { %>
import <%= method.name %> from '<%= method.path ... | import lodash from '<%= lodashPath %>/chain/lodash';
import LodashWrapper from '<%= lodashPath %>/internal/LodashWrapper';
import create from '<%= lodashPath %>/object/create';
import mixin from '<%= lodashPath %>/utility/mixin';
<%
// Remove imported modules to prevent err
_(config)
.reject(_.partial(_.contains, ['c... |
Disable submit button properly (odd that it worked at all in Safari) and let browser deal with appearance change. | {* $Id$ *}
{jq}
$("#editItemForm{{$trackerEditFormId}}").validate({
{{$validationjs}},
ignore: '.ignore',
submitHandler: function(){process_submit(this.currentForm);}
});
{/jq}
{jq}
process_submit = function(me) {
if (!$(me).attr("is_validating")) {
$(me).attr("is_validating", true);
$(me).validate();
}
if ($... | {* $Id$ *}
{jq}
$("#editItemForm{{$trackerEditFormId}}").validate({
{{$validationjs}},
ignore: '.ignore',
submitHandler: function(){process_submit(this.currentForm);}
});
{/jq}
{jq}
process_submit = function(me) {
if (!$(me).attr("is_validating")) {
$(me).attr("is_validating", true);
$(me).validate();
}
if ($... |
Add styling options to logon link | {# Render link that opens a modal login/signup dialog. #}
{% if not m.acl.user %}
{% lib
"css/logon.css"
%}
<a id="{{ #signup }}" href="#">{{ label|default:_"logon/signup" }} <i class="glyphicon glyphicon-log-in"></i></a>
{% wire
id=#signup
action={
dialog_open
... | {# Render link that opens a modal login/signup dialog. #}
{% if not m.acl.user %}
{% with
class|default:"main-nav__login-register-button",
icon|default:"glyphicon glyphicon-log-in",
icon_before,
label|default:_"logon/signup"
as
class,
icon,
icon_position... |
Add bootstrap.js to default js include |
{% include "_js_include_jquery.tpl" %}
{% lib
"js/apps/zotonic-1.0.js"
"js/apps/z.widgetmanager.js"
"js/modules/z.notice.js"
"js/modules/z.imageviewer.js"
"js/modules/z.dialog.js"
"js/modules/livevalidation-1.3.js"
"js/modules/z.inputoverlay.js"
"js/modules/jquery.loadmask.js"
%}
{% block _js_include_extra %... |
{% include "_js_include_jquery.tpl" %}
{% lib
"bootstrap/js/bootstrap.min.js"
"js/apps/zotonic-1.0.js"
"js/apps/z.widgetmanager.js"
"js/modules/z.notice.js"
"js/modules/z.imageviewer.js"
"js/modules/z.dialog.js"
"js/modules/livevalidation-1.3.js"
"js/modules/z.inputoverlay.js"
"js/modules/jquery.loadmask.js"... |
Fix 'sensor not required' warning | {# Javascript files for the admin #}
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key={{ m.config.mod_geo.api_key.value|escape }}&sensor=false"></script>
{% lib "js/admin-geo.js" %}
| {# Javascript files for the admin #}
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key={{ m.config.mod_geo.api_key.value|escape }}"></script>
{% lib "js/admin-geo.js" %}
|
Put the user id and the user code in the url | hello | <p>
Welcome to Influence Networks,
</p>
<p>
Please, to confirm your user registration, you have to visit the following link :<br />
<a target="_blank" href="{$smarty.const.APP_URL}?action=confirmAccount&user_id={$user.id}&code={$user.code}=">{$smarty.const.APP_URL}?action=confirmAccount&user_id... |
Insert Home URL in backend main page. | {* Smarty *}
{*
vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:
File: $Id$
*}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>{$page_title}</title>
{arag_head}
</head>
<body>
{a... | {* Smarty *}
{*
vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:
File: $Id$
*}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>{$page_title}</title>
{arag_head}
</head>
<body>
{a... |
Fix HTML code of multiline text form field | {include file='__formFieldHeader'}
<textarea id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}" rows="{@$field->getRows()}"{if $field->isAutofocused()} autofocus{/if}{if $field->isRequired()} required{/if}{if $field->isImmutable()} disabled{/if}{if $field->getMinimumLength() !== null} minlength="{$field... | {include file='__formFieldHeader'}
<textarea id="{@$field->getPrefixedId()}" {*
*}name="{@$field->getPrefixedId()}" {*
*}rows="{@$field->getRows()}"{*
*}{if $field->isAutofocused()} autofocus{/if}{*
*}{if $field->isRequired()} required{/if}{*
*}{if $field->isImmutable()} disabled{/if}{*
*}{if $field->getMinimumL... |
Use $jq not $ for jQuery object - also changed to use the default show/hide functions for animation (as set in admin/look/UI Effects) | <div class="adminoptionbox">
<div class="adminoption">
<input id="{$p.id|escape}" type="checkbox" name="{$p.preference|escape}" {if $p.value eq 'y'}checked="checked"{/if}/>
</div>
<div class="adminoptionlabel" >
<label for="{$p.id|escape}">{$p.name|escape}</label>
{include file=prefs/shared-flags.tpl}
</div>
... | <div class="adminoptionbox">
<div class="adminoption">
<input id="{$p.id|escape}" type="checkbox" name="{$p.preference|escape}" {if $p.value eq 'y'}checked="checked"{/if}/>
</div>
<div class="adminoptionlabel" >
<label for="{$p.id|escape}">{$p.name|escape}</label>
{include file=prefs/shared-flags.tpl}
</div>
... |
Remove / in Peer Identity | <div class="row">
<div class="col-lg-12">
<div class="panel panel-info">
<div class="panel-heading">
<i class="fa fa-connectdevelop fa-fw"></i> Peer Information
</div>
<div class="panel-body no-padding">
<table class="table table-striped table-bordered table-hover">
<th... | <div class="row">
<div class="col-lg-12">
<div class="panel panel-info">
<div class="panel-heading">
<i class="fa fa-connectdevelop fa-fw"></i> Peer Information
</div>
<div class="panel-body no-padding">
<table class="table table-striped table-bordered table-hover">
<th... |
Make sure contacs header is same size as everything in aside. |
<div id="contact-block">
<h4 class="contact-block-h4">{{$contacts}}</h4>
{{if $micropro}}
<a class="allcontact-link" href="viewcontacts/{{$nickname}}">{{$viewcontacts}}</a>
<div class='contact-block-content'>
{{foreach $micropro as $m}}
{{$m}}
{{/foreach}}
</div>
{{/if}}
</div>
<div class="clear"></div>
|
<div id="contact-block">
<h3 class="contact-block-h4">{{$contacts}}</h3>
{{if $micropro}}
<a class="allcontact-link" href="viewcontacts/{{$nickname}}">{{$viewcontacts}}</a>
<div class='contact-block-content'>
{{foreach $micropro as $m}}
{{$m}}
{{/foreach}}
</div>
{{/if}}
</div>
<div class="clear"></div>
|
Adjust formfield tpl var $id -> $inputId | {if $value}
{$value = {date_time date=$value}}
{/if}
{tag el="input" name=$name id=$id type="text" value=$value class="textinput {$class}" placeholder=$placeholder}
| {if $value}
{$value = {date_time date=$value}}
{/if}
{tag el="input" name=$name id=$inputId type="text" value=$value class="textinput {$class}" placeholder=$placeholder}
|
Load framework version from pages workspace config | {if $.get.jsdebug || !Site::resolvePath('site-root/js/pages/common.js')}
<script src="{Sencha::getVersionedFrameworkPath('ext', 'build/ext-all-debug.js', '5.0.1')}"></script>
{sencha_bootstrap
frameworkVersion='5.0.1'
classPaths=array('sencha-workspace/pages/src', 'ext-library/Jarvus/ext/patch',... | {if $.get.jsdebug || !Site::resolvePath('site-root/js/pages/common.js')}
<?php
// get framework version from workspace config
$cacheKey = 'pages-framework-version';
if (!$this->scope['frameworkVersion'] = Cache::fetch($cacheKey)) {
$workspaceConfig = Sencha::loadProperties(Site::... |
Remove old styled module title | {tikimodule name="switch_lang2"}
<div class="box-title">{tr}Language: {/tr}`$language`</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
{section name=ix loop=$languages}
<td align="center">
<a title="{$languages[ix].name|escape}" class="linkmodule" href="tiki-switch_lang.php?language={$l... | {* $Header: /cvsroot/tikiwiki/tiki/templates/modules/mod-switch_lang2.tpl,v 1.5 2003-11-23 22:57:32 zaufi Exp $ *}
{tikimodule title="{tr}Language{/tr}: `$language`" name="switch_lang2"}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
{section name=ix loop=$languages}
<td align="center">
<a ... |
Add page-wrapper to oauth/edit in frio |
<h2 class="heading">{{$title}}</h2>
<form method="POST">
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
{{include file="field_input.tpl" field=$name}}
{{include file="field_input.tpl" field=$key}}
{{include file="field_input.tpl" field=$secret}}
{{include file="field_input.tpl... | <div class="generic-page-wrapper">
<h2 class="heading">{{$title}}</h2>
<form method="POST">
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
{{include file="field_input.tpl" field=$name}}
{{include file="field_input.tpl" field=$key}}
{{include file="field_input.tpl" field=$secret}... |
Rename label from appversion to version. | {{- define "commonLabels" -}}
app: {{ .Chart.Name | quote }}
release: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
heritage: {{ .Release.Service }}
{{- if .Values.extraLabels }}
{{ toYaml .Values.extraLabels }}
{{- end }}
{{- end -}}
{{- define "completeLabels" -}}
{{ include "commonLabels" . }}
a... | {{- define "commonLabels" -}}
app: {{ .Chart.Name | quote }}
release: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
heritage: {{ .Release.Service }}
{{- if .Values.extraLabels }}
{{ toYaml .Values.extraLabels }}
{{- end }}
{{- end -}}
{{- define "completeLabels" -}}
{{ include "commonLabels" . }}
v... |
Clean message when nothing found in an elements list |
<div class="panel-heading">
<center class="alert-warning">
%if search_string:
<h3>{{_('What a bummer! We could not find anything.')}}</h3>
{{_('Use the filters or the bookmarks to find what you are looking for, or try a new search query.')}}
%else:
<h3>{{_('No elements found.')}}</h3>
%e... | <div class="text-center alert alert-warning">
%if search_string:
<h4>{{_('What a bummer! We could not find anything.')}}</h4>
<p>{{_('Use the filters or the bookmarks to find what you are looking for, or try a new search query.')}}</p>
%else:
<h4>{{_('No elements found.')}}</h4>
%end
</div>
|
Set better HTML indentation ;) | <div class="col-md-8">
<p><a href="{path_img_background}" data-popup="image"><img src="{path_img_background}" alt="{lang 'Wallpaper'}" title="{lang 'Your current wallpaper'}" width="160" height="150" /></a></p>
{if $is_admin_auth AND !$is_user_auth}
{{ LinkCoreForm::display(t('Remove wallpaper?'), null... | <div class="col-md-8">
<p>
<a href="{path_img_background}" data-popup="image">
<img src="{path_img_background}" alt="{lang 'Wallpaper'}" title="{lang 'Your current wallpaper'}" width="160" height="150" />
</a>
</p>
{if $is_admin_auth AND !$is_user_auth}
{{ LinkCoreForm::... |
Make STEP word translatable (with Gettext) | <div class="progress">
<div
class="progress-bar progress-bar-striped active"
role="progressbar"
aria-valuenow="{progressbar_percentage}"
aria-valuemin="0"
aria-valuemax="100"
style="width:{progressbar_percentage}%"
>{progressbar_percentage}% - STEP {progressbar_st... | <div class="progress">
<div
class="progress-bar progress-bar-striped active"
role="progressbar"
aria-valuenow="{progressbar_percentage}"
aria-valuemin="0"
aria-valuemax="100"
style="width:{progressbar_percentage}%"
>{progressbar_percentage}% - {lang 'STEP'} {progr... |
Fix signature of DE confirmation template | <p style="font-size:14px;font-family: arial,helvetica,sans-serif;">Hallo {$contact.first_name} {$contact.last_name},</p>
<p style="font-size:14px;font-family: arial,helvetica,sans-serif;">Unsere Petitionen haben eine Wirkung, weil sie von Menschen wie Ihnen unterstützen werden. Gerne möchten wir Sie auf dem Laufenden ... | <p style="font-size:14px;font-family: arial,helvetica,sans-serif;">Hallo {$contact.first_name} {$contact.last_name},</p>
<p style="font-size:14px;font-family: arial,helvetica,sans-serif;">Unsere Petitionen haben eine Wirkung, weil sie von Menschen wie Ihnen unterstützen werden. Gerne möchten wir Sie auf dem Laufenden ... |
Make includes optional to prevent unfound template warnings | {% extends "admin_base.tpl" %}
{% block title %}
{_ Admin log on _}
{% endblock %}
{% block bodyclass %}noframe{% endblock %}
{% block navigation %} {% endblock %}
{% block content %}
<div class="widget admin-logon">
<img alt="Driebit Ginger" class="logon-logo" src="/lib/images/ginger-logo.png">
... | {% extends "admin_base.tpl" %}
{% block title %}
{_ Admin log on _}
{% endblock %}
{% block bodyclass %}noframe{% endblock %}
{% block navigation %} {% endblock %}
{% block content %}
<div class="widget admin-logon">
<img alt="Driebit Ginger" class="logon-logo" src="/lib/images/ginger-logo.png">
... |
Use cleaner syntax for required option | {% with
m.rsc[cat],
m.rsc[predicate],
title|default:m.rsc[predicate].title,
tabs_enabled|default:['find'],
tab|default:'find',
actions|default:[],
direction|default:'out',
dispatch|default:zotonic_dispatch,
required|default:"false"
as
cat,
predicate,
title,
tabs_enabl... | {% with
m.rsc[cat],
m.rsc[predicate],
title|default:m.rsc[predicate].title,
tabs_enabled|default:['find'],
tab|default:'find',
actions|default:[],
direction|default:'out',
dispatch|default:zotonic_dispatch
as
cat,
predicate,
title,
tabs_enabled,
tab,
actions,
... |
Fix index offset calculation for variant types | {{$variant := (index .Variant 0)}}{{if $variant.MarkerDelimited}}
{
fieldStart := i
for ; i < len(payload) && payload[i] != {{$variant.MarkerValue}}; i++ {}
cmd.{{ToGoName .Name}} = payload[fieldStart:i]
}
{{else}}
{{if ne $variant.RemainingBytes 0}}
cmd.{{ToGoName .Name}} = payload[i:len(payload)-{{$variant.Rema... | {{$variant := (index .Variant 0)}}{{if $variant.MarkerDelimited}}
{
fieldStart := i
for ; i < len(payload) && payload[i] != {{$variant.MarkerValue}}; i++ {}
cmd.{{ToGoName .Name}} = payload[fieldStart:i]
}
{{else}}
{{if ne $variant.RemainingBytes 0}}
cmd.{{ToGoName .Name}} = payload[i:len(payload)-{{$variant.Rema... |
Change the debian required package from mysql-server to mysql-client. | Package: trustservicereputation
Version: ${version}
Maintainer: Marc Plouhinec <m_plouhinec@yahoo.fr>
Architecture: all
Depends: default-jre, mysql-server
Description: Trust Service Reputation.
| Package: trustservicereputation
Version: ${version}
Maintainer: Marc Plouhinec <m_plouhinec@yahoo.fr>
Architecture: all
Depends: default-jre, mysql-client
Description: Trust Service Reputation.
|
Disable single log off, other method needed. | {% if m.acl.user %}
<a class="logoff_link" href="{% url logoff %}"
{% if m.session.facebook_logon %}onclick="FB.logout(function() { window.location = '{% url logoff %}'}); return false;"{% endif %}
>Log Off</a>
{% else %}
<a class="logon_link" href="{% url logon %}">Log On</a>
{% endif %}
| {% if m.acl.user %}
<a class="logoff_link" href="{% url logoff %}"
{#{% if m.session.facebook_logon %}onclick="FB.logout(function() { window.location = '{% url logoff %}'}); return false;"{% endif %}#}
>Log Off</a>
{% else %}
<a class="logon_link" href="{% url logon %}">Log On</a>
{% endif %}
|
Set autofocus on duplicate rsc dialog | <p>
{_ You are going to duplicate the page _} “{{ m.rsc[id].title }}”<br/>
{_ Please fill in the title of the new page. _}
</p>
{% wire id=#form type="submit" postback={duplicate_page id=id} delegate=delegate %}
<form id="{{ #form }}" method="POST" action="postback" class="form-horizontal">
<div class="co... | <p>
{_ You are going to duplicate the page _} “{{ m.rsc[id].title }}”<br/>
{_ Please fill in the title of the new page. _}
</p>
{% wire id=#form type="submit" postback={duplicate_page id=id} delegate=delegate %}
<form id="{{ #form }}" method="POST" action="postback" class="form-horizontal">
<div class="co... |
Add a note about installation | # Symfony Upgrade Fixer [](https://travis-ci.org/umpirsky/Symfony-Upgrade-Fixer)
Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.
## Usage
The ``fix`` command tries to fix as much upgrade ... | # Symfony Upgrade Fixer [](https://travis-ci.org/umpirsky/Symfony-Upgrade-Fixer)
Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.
## Installation
#### Local
```bash
composer require umpir... |
Correct representation of tax rate as percent, not decimal | % rebase('base.tpl', title='NYC Tax Calculator')
<p>
Residence: {{residence}}
<br />
Deduction: {{deduction_fmtd}}
<br />
Gross: {{gross_fmtd}}
</p>
<p>
Tax: {{tax_fmtd}}
<br />
Net: {{net_fmtd}}
<br />
Tax Rate: {{round((tax / gross), 2)}}%
</p>
| % rebase('base.tpl', title='NYC Tax Calculator')
<p>
Residence: {{residence}}
<br />
Deduction: {{deduction_fmtd}}
<br />
Gross: {{gross_fmtd}}
</p>
<p>
Tax: {{tax_fmtd}}
<br />
Net: {{net_fmtd}}
<br />
Tax Rate: {{round( 100 * (tax / gross), 2)}}%
</p>
|
Add reorder button to list if reorder present | <div data-control="toolbar">
{% if hasFormBehavior %}
<a href="<?= Backend::url('{{ createUrl }}') ?>" class="btn btn-primary oc-icon-plus"><?= e(trans('backend::lang.form.create')) ?></a>
{% endif %}
<button
class="btn btn-default oc-icon-trash-o"
disabled="disabled"
onclick="$(... | <div data-control="toolbar">
{% if hasFormBehavior %}
<a href="<?= Backend::url('{{ createUrl }}') ?>" class="btn btn-primary oc-icon-plus"><?= e(trans('backend::lang.form.create')) ?></a>
{% endif %}
{% if hasReorderBehavior %}
<a href="<?= Backend::url('{{ reorderUrl }}') ?>" class="btn btn-defaul... |
Remove extra space in sql lessons | ---
layout: lesson
root: ../..
---
{% extends 'markdown.tpl' %}
{% block input %}
<div class="in">
<pre>{{ cell.input | escape }}</pre>
</div>
{% endblock input %}
{% block output_group %}
<div class="out">
<pre>{{- super() -}}</pre>
</div>
{% endblock output_group %}
{% block stream %}
{{- output.text | escape -}}
... | ---
layout: lesson
root: ../..
---
{% extends 'markdown.tpl' %}
{% block input %}
<div class="in">
<pre>{{ cell.input | escape }}</pre>
</div>
{% endblock input %}
{% block output_group %}
<div class="out">
<pre>{{- super() -}}</pre>
</div>
{% endblock output_group %}
{%- block stream -%}{{- output.text | escape -}}... |
Add missing source.list entry for raspberrypi base images | FROM #{FROM}
LABEL io.resin.device-type="#{DEV_TYPE}"
RUN echo "deb http://archive.raspbian.org/raspbian #{SUITE} main contrib non-free rpi firmware" >> /etc/apt/sources.list \
&& apt-key adv --keyserver pgp.mit.edu --recv-key 0x9165938D90FDDD2E \
&& apt-key adv --keyserver pgp.mit.edu --recv-keys 0x4404DDEE92BF1... | FROM #{FROM}
LABEL io.resin.device-type="#{DEV_TYPE}"
RUN echo "deb http://archive.raspbian.org/raspbian #{SUITE} main contrib non-free rpi firmware" >> /etc/apt/sources.list \
&& apt-key adv --keyserver pgp.mit.edu --recv-key 0x9165938D90FDDD2E \
&& echo "deb http://archive.raspberrypi.org/debian #{SUITE} main" ... |
Use smiley instead of symbol :smiley: | <h2>How to rename the "admin123" folder</h2>
<p>To ensure excellent safety and protect the administration of your site, we recommend that you rename the "admin123" folder.</p>
<p>To do this, rename the folder with the name of your choice, then edit the file <em>~/YOUR_PROTECTED_FOLDER/app/configs/constants.php</em> an... | <h2>How to rename the "admin123" folder</h2>
<p>To ensure excellent safety and protect the administration of your site, we recommend that you rename the "admin123" folder.</p>
<p>To do this, rename the folder with the name of your choice, then edit the file <em>~/YOUR_PROTECTED_FOLDER/app/configs/constants.php</em> an... |
Use icons for social media buttons | {if count($events)}
<ul class="eventList">
{foreach $events as $event}
<li class="clickFeedback showEventDetails">
{component name='Denkmal_Component_Event' template='details' event=$event venueBookmarks=$venueBookmarks}
</li>
{/foreach}
</ul>
{else}
<div class="noContent">
{button... | {if count($events)}
<ul class="eventList">
{foreach $events as $event}
<li class="clickFeedback showEventDetails">
{component name='Denkmal_Component_Event' template='details' event=$event venueBookmarks=$venueBookmarks}
</li>
{/foreach}
</ul>
{else}
<div class="noContent">
{button... |
Revert aplazame.js use of data attributes | <script
type="text/javascript"
src="{$aplazame_js_uri|escape:'htmlall':'UTF-8'}"
data-api-host="{$aplazame_api_base_uri}"
data-aplazame="{$aplazame_public_key}"
data-sandbox="{if $aplazame_is_sandbox}true{else}false{/if}">
</script>
| <script type="text/javascript" src="{$aplazame_js_uri|escape:'htmlall':'UTF-8'}"></script>
<script>
aplazame.init({
host: "{$aplazame_api_base_uri}",
publicKey: "{$aplazame_public_key}",
sandbox: "{if $aplazame_is_sandbox}true{else}false{/if}"
});
</script>
|
Update dockerfiles to use new BZ components | {% macro env_metadata() %}{% endmacro %}
{% macro _version_selector(spec) %}
{% if spec.python_img_version %}{{ spec.python_img_version }}{% else %}{{ spec.version }}{% endif %}
{% endmacro %}
{% macro _prefix(spec) %}
{% if spec.version.startswith('3.') %}{{ spec.python3_component_prefix }}{% endif %}
{% endmacro %}... | {% macro env_metadata() %}{% endmacro %}
{% macro _version_selector(spec) %}
{% if spec.python_img_version %}{{ spec.python_img_version }}{% else %}{{ spec.version }}{% endif %}
{% endmacro %}
{% macro _prefix(spec) %}
{% if spec.version.startswith('3.') %}{{ spec.python3_component_prefix }}{% endif %}
{% endmacro %}... |
Stop installing JDK7 version of Bazel for Windows | @echo on
mkdir c:\bazel_ci\installs
copy "bazel-installer\JAVA_VERSION=1.8,PLATFORM_NAME=windows-x86_64\output\ci\bazel*.exe" c:\bazel_ci\installs\bazel-jdk8.exe
copy "bazel-installer\JAVA_VERSION=1.7,PLATFORM_NAME=windows-x86_64\output\ci\bazel*.exe" c:\bazel_ci\installs\bazel-jdk7.exe
| @echo on
mkdir c:\bazel_ci\installs
copy "bazel-installer\JAVA_VERSION=1.8,PLATFORM_NAME=windows-x86_64\output\ci\bazel*.exe" c:\bazel_ci\installs\bazel-jdk8.exe
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.