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.columns.actions.end = f.submit "Filter", class: "button" ' or = link_to t("helpers.reset"), worryboard_path
/ 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 = f.input :patient_current_modality_description_id_eq, collection: modalities, label: "Modality" .w-full.sm:max-w-xs.pr-2 = f.input :created_by_id_eq, collection: Renalware::User.where("id in (select distinct created_by_id from patient_worries)"), label: "Added by" .flex-shrink-0.pt-4.filters--actions = f.submit "Filter", class: "button", style: "margin: 0" ' or = link_to t("helpers.reset"), worryboard_path
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='' i.fa.fa-chevron-down
.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, remote: :true do i.fa.fa-chevron-up = reply.score = link_to comment_vote_path(comment_id: reply.id, upvote: false), method: :post, remote: :true do i.fa.fa-chevron-down
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)}") #modals-wrapper .page .sticky-top = render "renalware/navigation/main" = yield(:header) = render "renalware/shared/flash_messages" main .main-content = yield - unless user_signed_in? = render "renalware/navigation/footer" = javascript_include_tag "application"
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)}") #modals-wrapper .page .sticky-top = render "renalware/navigation/main" = yield(:header) = render "renalware/shared/flash_messages" main .main-content = yield - unless user_signed_in? = render "renalware/navigation/footer" - load_js_asynchonously = (Rails.env.staging? || Rails.env.production?) = javascript_include_tag "application", async: load_js_asynchonously
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#stream src="#{episode.stream_url}?rel=0&autoplay=1&&showinfo=0&controls=0" frameborder="0" allowfullscreen="true" - @upcoming_episodes.each do |episode| .slideshow__slide.slideshow__slide--upcoming h2= link_to "Up Next: #{episode.title}", episode = image_tag episode.poster_url - @past_performances.each do |performance| .slideshow__slide.slideshow__slide--upcoming h2= link_to "Watch It Again: #{performance.title}", performance.episode = render 'video', src: performance.video_url, poster: performance.poster_url, name: performance.name.parameterize .slideshow__slide.slideshow_slide--workshop = image_tag 'workshop.png' h2= link_to 'Every Month: The brother.ly Electronic Music Workshop', '/workshop' section.home-page__features h2 Featured - @features.each do |feature| = render present(feature)
.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#stream src="#{episode.stream_url}?rel=0&autoplay=1&&showinfo=0&controls=0" frameborder="0" allowfullscreen="true" - @upcoming_episodes.each do |episode| .slideshow__slide.slideshow__slide--upcoming h2= link_to "Up Next: #{episode.title}", episode = image_tag episode.poster_url - @past_performances.each do |performance| .slideshow__slide.slideshow__slide--upcoming h2= link_to "Watch It Again: #{performance.title}", performance.episode = render 'video', src: performance.video_url, poster: performance.poster_url, name: performance.name.parameterize .slideshow__slide.slideshow_slide--workshop = image_tag 'workshop.png' h2= link_to 'Every Month: The brother.ly Electronic Music Workshop', '/workshop' - if @features.any? section.home-page__features h2 Featured - @features.each do |feature| = render present(feature)
Add hint for editing character data
h3 「種類」について p | この項目は同姓同名の2人のキャラがいたときの判別用に用意しています。 | そのため、この項目にはその作品のキャラだとわかる情報を入力して下さい。 | 特にこだわりがなければ、作品名を入力してもらえればと思います。 hr h3 「誕生日」「年齢」などの自由入力欄の入力形式について p | 誕生日や年齢などは作品によって色々な表現がありそうなので、自由入力形式にしています。 | 入力形式は公式サイトやWikipediaなどを参考にして頂ければと思います。 | 英語の入力形式は<a href="https://myanimelist.net/" target="_blank">MyAnimeList</a>などを参考にして下さい。 | Annict側には特に明確な制限はありません。 hr h3 「キャラ紹介」と「キャラ紹介の引用元」について p | キャラ紹介を登録するときは引用元の登録もお願いしています。 | 引用元は以下のような内容になります。 ul li 公式サイトから参照したとき: 公式サイト『(サイト名)』 li Wikipediaから参照したとき: Wikipedia『(ページ名)』 li 書籍から参照したとき: 書籍『(書籍名)』
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="#" span Menu section.top-bar-section ul.right / - if @search_module.enabled? / li.has-form / = render 'searches/form' - if I18n.available_locales.length > 1 li = render 'elements/language' ul.left - @menu_elements_header.each do |element| li class="#{set_active_class(element.category_name.tableize)} #{element.has_children? ? 'has-dropdown' : ''}" = link_to element.title, element.decorate.menu_link(element.category.name), class: 'l-nav-item-link', itemprop: 'url' - if element.has_children? ul.dropdown - element.children.online.with_page.each do |child| li class="#{set_active_class(child.category_name.tableize)}" = link_to child.title, child.decorate.menu_link(child.category_name)
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="#" span Menu section.top-bar-section ul.right / - if @search_module.enabled? / li.has-form / = render 'searches/form' - if I18n.available_locales.length > 1 && params[:action] != 'reply' li = render 'elements/language' ul.left - @menu_elements_header.each do |element| li class="#{set_active_class(element.category_name.tableize)} #{element.has_children? ? 'has-dropdown' : ''}" = link_to element.title, element.decorate.menu_link(element.category.name), class: 'l-nav-item-link', itemprop: 'url' - if element.has_children? ul.dropdown - element.children.online.with_page.each do |child| li class="#{set_active_class(child.category_name.tableize)}" = link_to child.title, child.decorate.menu_link(child.category_name)
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="https://commons.wikimedia.org/wiki/File:Klangschale_mit_Klöppel.jpg" https://commons.wikimedia.org/wiki/File:Klangschale_mit_Klöppel.jpg
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="https://commons.wikimedia.org/wiki/File:Klangschale_mit_Klöppel.jpg" https://commons.wikimedia.org/wiki/File:Klangschale_mit_Klöppel.jpg
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… h1 Registered machines table.machines thead th PID th Host th Remaining Jobs th Status tbody
.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… h1 Registered machines table.machines thead th PID th Host th Enqueued jobs th Status tbody
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, contact_descriptions: contact_descriptions .row .large-12.columns br = f.submit t(".save"), class: "button" ' or = link_to t(".cancel"), "#", "aria-label" => "Close", class: "reveal-modal-close" .row .large-12.columns .g-center = link_to "Person not found in directory", "#", class: "button secondary", data: { behaviour: "toggle-section" }
= 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, contact_descriptions: contact_descriptions .row .large-12.columns br = f.submit t(".save"), class: "button", data: { disable_with: false } ' or = link_to t(".cancel"), "#", "aria-label" => "Close", class: "reveal-modal-close" .row .large-12.columns .g-center = link_to "Person not found in directory", "#", class: "button secondary", data: { behaviour: "toggle-section" }
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) = delete_button([:admin, instance]) if can?(:destroy, 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_instance_courses_url(host: instance.host) td = edit_button([:admin, instance]) if can?(:edit, instance) = delete_button([:admin, instance]) if can?(:destroy, instance)
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 - if @user.role == 'student' dt Belongs to Classes dd= @user.classrooms.collect { |c| "#{c.name} - #{c.teacher.name}" }.join('<br />').html_safe dt Classcode dd= @user.classcode dt School dd= @user.school_name dt School Location dd= "#{@user.school_mail_city}, #{@user.school_mail_state}" if @user.school - if @user.teacher? dt Premium Status dd= @user.subscriptions.last&.account_type dt Premium Expires dd= @user.subscriptions.last&.expiration dt Grades dd= @user.classrooms_i_teach.collect {|c| "#{c.name} - #{c.grade}"}.join('<br />').html_safe dt IP Address dd= @user.ip_address dt Created dd= @user.created_at dt Last Sign In dd= @user.updated_at
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 - if @user.role == 'student' dt Belongs to Classes dd= @user.classrooms.collect { |c| "#{c.name} - #{c.teacher.name}" }.join('<br />').html_safe dt Classcode dd= @user.classcode dt School dd= @user.school_name dt School Location dd= "#{@user.school_mail_city}, #{@user.school_mail_state}" if @user.school - if @user.teacher? dt Premium Status dd= @user.subscriptions.last&.account_type dt Premium Expires dd= @user.subscriptions.last&.expiration dt Grades dd= @user.classrooms_i_teach.collect {|c| "#{c.name} - #{c.grade}"}.join('<br />').html_safe dt User Location dd= "#{Pointpin.locate(@user.ip_address)&.city_name}, #{Pointpin.locate(@user.ip_address)&.region_name}" dt IP Address dd= @user.ip_address dt Created dd= @user.created_at dt Last Sign In dd= @user.updated_at
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.each do |record| tr td= l(record.created_at.to_date) td= t("category.#{record.category}") td - if record.title? strong= record.title br = word_wrap(record.body) if record.body td= link_to record.user.full_name, record.user.profile td= link_to t_action(:edit), url_for([@journaled, record]) + '/edit' = form_navigation_btn :new .row .col-xs-12= button_link navigation_glyph(:back), @journaled
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 td= t("category.#{record.category}") td - if record.title? strong= record.title br = word_wrap(record.body) if record.body td= link_to record.user.full_name, record.user.profile td= link_to t_action(:edit), url_for([@journaled, record]) + '/edit' = form_navigation_btn :new .row .col-xs-12= button_link navigation_glyph(:back), @journaled
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 used the site. #right | On the right will be a blank space for you to write your letter .explanation p | Once you click submit, your letter will be saved and shown to the next person, and the cycle will begin again. = link_to 'Give it a try', root_path
.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 used the site. #right | On the right will be a blank space for you to write your letter .explanation p | Once you click submit, your letter will be saved and shown to the next person, and the cycle will begin again. = link_to 'Give it a try', root_path small | Built with pride by #{link_to "Charles Dawson", 'http://cdawson.net'}
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'} ‘owner’: #{params[:successfully_claimed].to_sentence}. p If you have any co-maintainers, you can now add them as ‘owners’ as well. For information on how to do this see the <a href = "http://guides.cocoapods.org/making/getting-setup-with-trunk">getting started with Trunk</a> guide. p Once we have finished the transition period, you will be able to push new versions of #{params[:successfully_claimed].size == 1 ? 'these pods' : 'this pod'} directly from the command-line. For more details see [TODO]. - else p All of your choosen Pods are already claimed. - unless params[:already_claimed] == [''] p The following #{params[:already_claimed].size == 1 ? 'pod has' : 'pods have'} already been claimed: #{params[:already_claimed].to_sentence}. If you disagree with this please <a href="#{url("/disputes/new?#{{ :claimer_email => params[:claimer_email], :pods => params[:already_claimed] }.to_query}")}">file a dispute</a>.
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'} ‘owner’: #{params[:successfully_claimed].to_sentence}. p If you have any co-maintainers, you can now add them as ‘owners’ as well. For information on how to do this see the <a href = "http://guides.cocoapods.org/making/getting-setup-with-trunk">getting started with Trunk</a> guide. p Once we have finished the transition period, you will be able to push new versions of #{params[:successfully_claimed].size == 1 ? 'these pods' : 'this pod'} directly from the command-line. For more details see the <a href = "http://guides.cocoapods.org/making/getting-setup-with-trunk">getting started with Trunk</a> guide. - else p All of your choosen Pods are already claimed. - unless params[:already_claimed] == [''] p The following #{params[:already_claimed].size == 1 ? 'pod has' : 'pods have'} already been claimed: #{params[:already_claimed].to_sentence}. If you disagree with this please <a href="#{url("/disputes/new?#{{ :claimer_email => params[:claimer_email], :pods => params[:already_claimed] }.to_query}")}">file a dispute</a>.
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 Edwards" = csrf_meta_tag title #{@page_title} = stylesheet_link_tag 'bootstrap.min' = stylesheet_link_tag 'font-awesome.min' = stylesheet_link_tag 'user_submit' = stylesheet_link_tag 'bootstrap-clockpicker.min.css' /[if lt IE 9] = javascript_include_tag "https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js" = javascript_include_tag "https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js" = stylesheet_link_tag 'custom-theme/jquery-ui-1.10.0.ie' body .container = yield = javascript_include_tag 'jquery.min' = javascript_include_tag "https://code.jquery.com/ui/1.11.4/jquery-ui.min.js" = javascript_include_tag 'bootstrap.min' = javascript_include_tag 'bootstrap-clockpicker.min' = javascript_include_tag 'user_submit.js'
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 Edwards" = csrf_meta_tag title #{@page_title} = stylesheet_link_tag 'user_events' /[if lt IE 9] = javascript_include_tag "https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js" = javascript_include_tag "https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js" body .container = yield = javascript_include_tag 'application' = javascript_include_tag 'user_events'
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.project.name, subscription.project, class: 'link_project' td.date = I18n.l(subscription.created_at.to_date) td.status = I18n.t(subscription.status, scope: [:activerecord, :attributes, :subscription, :statuses]) td.cancel - unless subscription.canceled? = simple_form_for subscription, url: subscription_cancel_path, method: :post do |form| = form.input :id, as: :hidden, value: subscription.id = form.button :submit, t('.form.submit.cancel'), class: 'bg-red-error'
.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.project.name, subscription.project, class: 'link_project' td.date = I18n.l(subscription.created_at.to_date) td.status = I18n.t(subscription.status, scope: [:activerecord, :attributes, :subscription, :statuses]) td.cancel - if subscription.available_for_canceling? = simple_form_for subscription, url: subscription_cancel_path, method: :post do |form| = form.input :id, as: :hidden, value: subscription.id = form.button :submit, t('.form.submit.cancel'), class: 'bg-red-error'
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.new-address(ng-hide='existingAddress') address-form(address='address' countries='countries' disabled='disabled') p(ng-hide='disabled') a.existing-address(ng-if='addresses.length > 0' ng-click='toggleExistingAddress()') | {{:: 'address.use_existing' | 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' | translate}} section.new-address(ng-hide='existingAddress') address-form(address='address' countries='countries' disabled='disabled') p(ng-hide='disabled') a.existing-address(ng-if='addresses.length > 0' ng-click='toggleExistingAddress()') | {{:: 'address.use_existing' | translate}}
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", patient_pd_exit_site_infection_path(patient, e.id), class: "view-es-infection", id: "view-es-infection-#{e.id}" td valign="top" = l e.diagnosis_date td valign="top" = e.outcome td valign="top" = e.treatment td valign="top" = e.updated_at.to_date
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", patient_pd_exit_site_infection_path(patient, e.id), class: "view-es-infection", id: "view-es-infection-#{e.id}" td valign="top" = l e.diagnosis_date td valign="top" = e.outcome td valign="top" = e.treatment td valign="top" = e.updated_at.to_date
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: true .form-group = f.label :plan, class: "col-sm-2 control-label" .col-sm-6 - for plan in @plans .radio label = radio_button_tag 'plan', plan.amount, checked = (plan.id == @plan.id) strong = plan.name = ": " + plan.metadata['Memory'] + " Memory, " = plan.metadata['Processor'] + " Processor, " = plan.metadata['Storage'] + " Storage and " = plan.metadata['Bandwidth'] + " Bandwidth" .form-group = f.label :region, class: "col-sm-2 control-label" .col-sm-6 - for region in @regions .radio label = radio_button_tag 'region', region.slug, checked = (region.slug == @region) strong = region.name .form-group .col-sm-offset-2.col-sm-10 button#checkout.btn.btn-primary type="submit" New Instance
= 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", autofocus: true .form-group = f.label :plan, class: "col-sm-2 control-label" .col-sm-6 - for plan in @plans .radio label = radio_button_tag 'plan', plan.amount, checked = (plan.id == @plan.id) strong = plan.name = ": " + plan.metadata['Memory'] + " Memory, " = plan.metadata['Processor'] + " Processor, " = plan.metadata['Storage'] + " Storage and " = plan.metadata['Bandwidth'] + " Bandwidth" .form-group = f.label :region, class: "col-sm-2 control-label" .col-sm-6 - for region in @regions .radio label = radio_button_tag 'region', region.slug, checked = (region.slug == @region) strong = region.name .form-group .col-sm-offset-2.col-sm-10 / button#checkout.btn.btn-primary type="submit" New Instance = button_to 'Pay now', new_charge_path, class: 'btn btn-lg btn-success', id:'checkout', type: 'submit'
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 = t('.expected') th = t('.hint') tbody tr th colspan=4 = t('.public') - public_test_cases.each do |test_case| = content_tag_for(:tr, test_case) do th = test_case.identifier td = test_case.expression td = test_case.expected td = test_case.hint tbody tr th colspan=4 = t('.private') - private_test_cases.each do |test_case| = content_tag_for(:tr, test_case) do th = test_case.identifier td = test_case.expression td = test_case.expected td = test_case.hint td tbody tr th colspan=4 = t('.evaluation') - evaluation_test_cases.each do |test_case| = content_tag_for(:tr, test_case) do th = test_case.identifier td = test_case.expression td = test_case.expected td = test_case.hint td
- 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 = t('.expected') th = t('.hint') tbody tr th colspan=4 = t('.public') - public_test_cases.each do |test_case| = content_tag_for(:tr, test_case) do th = test_case.identifier td = test_case.expression td div.expected = test_case.expected td = test_case.hint tbody tr th colspan=4 = t('.private') - private_test_cases.each do |test_case| = content_tag_for(:tr, test_case) do th = test_case.identifier td = test_case.expression td div.expected = test_case.expected td = test_case.hint td tbody tr th colspan=4 = t('.evaluation') - evaluation_test_cases.each do |test_case| = content_tag_for(:tr, test_case) do th = test_case.identifier td = test_case.expression td div.expected = test_case.expected td = test_case.hint td
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.number_field :postcode_id, class: 'form-control' = f.fields_for :panels do |builder| = render 'panel_fields', f: builder = link_to 'add panel', '', class: 'btn btn-default add_fields', remote: true = f.submit 'view output', class: "btn btn-default btn-primary"
= 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' = f.number_field :postcode_id, class: 'form-control' = f.fields_for :panels do |builder| = render 'panel_fields', f: builder = link_to 'add panel', '', class: 'btn btn-default add_fields', remote: true = f.submit 'view output', class: "btn btn-default btn-primary"
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 - project.latest_revisions(revision_count).each do |revision| .revision - presenter = RevisionPresenter.new(revision) = link_to(presenter.name, revision.github_url, target: "_blank") - presenter.builds.each do |build| span.build class=build.status = link_to_if(build.status_url, build.name, build.status_url, target: "_blank") / Show time of a fully successful revision. / Useful for optimizing overall commit-to-production time. - if presenter.all_builds_successful? span.total-time = presenter.total_time_in_words span.created-at = presenter.created_at
.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 - project.latest_revisions(revision_count).each do |revision| .revision - presenter = RevisionPresenter.new(revision) = link_to(presenter.name, revision.github_url, target: "_blank") - presenter.builds.each do |build| span.build class=build.status = link_to_if(build.status_url, build.name, build.status_url, target: "_blank") / Show time of a fully successful revision. / Useful for optimizing overall commit-to-production time. - if presenter.all_builds_successful? span.total-time = presenter.total_time_in_words span.created-at ' Started = presenter.created_at
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.model_name.route_key}/#{location.id}/activate", method: :patch, class: 'button -secondary'
- 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.model_name.route_key}/#{location.id}/activate", method: :patch, class: 'button -type-a'
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:'createdAt':true") td .col-xs-3 .row img.img-thumbnail(gravatar="buy.buyer.email") .col-xs-9 .row a(ng-href="/app/users/{{buy.buyer.id}}") | {{buy.buyer.username}} .row small.h6.text-muted | {{buy.createdAt|date:'d.M.yyyy HH:mm'}} td div(ng-repeat="entry in buy.consistsOfProducts") small | {{entry.amount}} {{entry.product.name}} td(ng-controller="BuyToBasketCtrl") button.btn.btn-success(ng-click="setToBasket(buy)") i.fa.fa-shopping-cart.fa-fw button.btn.btn-danger(ng-click="delete(buy)" ng-if="canBeDeleted(buy)") i.fa.fa-trash.fa-fw
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-repeat="buy in buys|orderBy:'createdAt':true") td img.img-thumbnail(gravatar="buy.buyer.email") td .row a(ng-href="/app/users/{{buy.buyer.id}}") | {{buy.buyer.username}} .row small.h6.text-muted | {{buy.createdAt|date:'d.M.yyyy HH:mm'}} td div(ng-repeat="entry in buy.consistsOfProducts") small | {{entry.amount}} {{entry.product.name}} td(ng-controller="BuyToBasketCtrl") button.btn.btn-success(ng-click="setToBasket(buy)") i.fa.fa-shopping-cart.fa-fw button.btn.btn-danger(ng-click="delete(buy)" ng-if="canBeDeleted(buy)") i.fa.fa-trash.fa-fw
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 - if current_user ul.nav li a href=full_path('/followers') Followers li a href=full_path('/followings') Following ul.nav.pull-right li a href=full_path('/signout') Signout - else ul.nav.pull-right li a href='https://tent.is/login' Login .container#main == yield if block_given? javascript: var StatusApp = { api_root: "#{{full_path('/api')}}", url_root: "#{{full_path('/')}}", authenticated: #{{!!(current_user || guest_user)}}, guest_authenticated: #{{!!guest_user}}, current_entity: "#{{current_user.entity}}" } script src=asset_path("boot.js")
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 - if current_user ul.nav li a href=full_path('/followers') Followers li a href=full_path('/followings') Following ul.nav.pull-right li a href=full_path('/signout') Signout - else ul.nav.pull-right li a href='https://tent.is/login' Login .container#main == yield if block_given? javascript: var StatusApp = { api_root: "#{{full_path('/api')}}", url_root: "#{{full_path('/')}}", authenticated: #{{!!(current_user || guest_user)}}, guest_authenticated: #{{!!guest_user}}, current_entity: "#{{current_user ? current_user.entity : nil}}" } script src=asset_path("boot.js")
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: :text, input_html: { class: 'form-control', rows: 4 }, label: false .clear label.form-label Information to strengthen the application .form-value.no-js-update p = feedback.public_send("#{feedback_field}_weakness").presence || content_tag(:i, "No feedback has been added yet") .input.form-group = f.input "#{feedback_field}_weakness", as: :text, input_html: { class: 'form-control', rows: 4 }, label: false .clear - if policy(feedback).update? = link_to "#", class: "form-edit-link pull-right" do span.glyphicon.glyphicon-pencil ' Edit = f.submit "Save", class: "btn btn-primary form-save-button pull-right" .clear
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: :text, input_html: { class: 'form-control', rows: 4 }, label: false .clear label.form-label Information to strengthen the application .form-value.no-js-update p = feedback.public_send("#{feedback_field}_weakness").presence || content_tag(:i, "No feedback has been added yet") .input.form-group = f.input "#{feedback_field}_weakness", as: :text, input_html: { class: 'form-control', rows: 4 }, label: false .clear - if policy(feedback).update? = link_to "#", class: "form-edit-link pull-right" do span.glyphicon.glyphicon-pencil ' Edit = f.submit "Save", class: "btn btn-primary form-save-button pull-right" .clear
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=(attr :height)
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 expected (as of Tuesday, June 21). p I apologize for any inconvenience this caused, and will be taking steps to make sure these types of issues are dealt with quickly. .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"]["background"]) = board["name"]
.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"]["background"]) = board["name"]
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.description - if repo.full_name.present? span.repo-item-full-name | (#{repo.full_name})
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.description - if repo.full_name.present? span.repo-item-full-name | (#{repo.full_name})
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 br = f.input :first_name, required: true br = f.input :last_name, required: true br = f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @validatable) br = f.input :password_confirmation, required: true .form-actions br = f.button :submit, "Sign up", :class => "button2" br == render "devise/shared/links" =render "layouts/footer"
#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 br = f.input :first_name, required: true br = f.input :last_name, required: true br = f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @validatable) br = f.input :password_confirmation, required: true, hint: ("#{@minimum_password_length} characters minimum" if @validatable) .form-actions br = f.button :submit, "Sign up", :class => "button2" br == render "devise/shared/links" =render "layouts/footer"
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 btn-primary'
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 put the name of the image file (which must be in the "images" folder). Finally, you put a description for the image. This will appear as the "alt" attribute of the image in the final HTML. It's important for SEO. = blog_img "compare-3-jar-deoderants-primal-pit-paste-naturally-sourced-schmidt's.jpg", "my alt attribute text" h2 Links p Another helpful feature is creating links. You can do this by wrapping the information in a special syntax with braces and a pound character. Here's an example of a link to an article about the #{ link_to "alt attribute's relevance to SEO", "https://econsultancy.com/blog/63845-the-basics-of-using-alt-text-for-seo" }. p That was a link to a random page on the internet. If you wanted to link to somewhere within this site, you have a couple options. p Here is a link to #{ link_to "Schmidt's Lavender and Sage product page", get_product_url(data.products["Schmidt's Lavender & Sage"]) } p Here is a link to #{ link_to "Schmidt's Lavender and Sage affiliate link", data.products["Schmidt's Lavender & Sage"].affiliate_link } p Here is a link to #{ link_to "an article on this site", get_post_url("Our review of the best tub deoderants") } h2 Site Map p To see every page that is on the website, you can browse the #{ link_to "sitemap", "/__middleman/sitemap/" } h2 Font styles p Here is how you can make words bold or italic: More text with some <strong> words in bold</strong>. And other <em> words in italic </em> h2 Markdown p Up until now we have been using "slim" syntax. It has a "p" or other tag at the beginning of each line. Another option is markdown. It makes some things easier but it also gives you less control of appearance. I just put it here for the sake of completeness. Slim is probably a better option. markdown: Here is a simple markdown example: Use **bold** text or *italics*. Here is a list using markdown: * First item * second item
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='HandheldFriendly' meta content='320' name='MobileOptimized' meta content='initial-scale=1, user-scalable=yes, width=device-width' name='viewport' link rel='shortcut icon' href='#{image_path('favicon.png')}' = stylesheet_link_tag 'application.css', media: 'all' /[if lt IE 9] = javascript_include_tag 'ie-lt-9' = yield_content :head
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='HandheldFriendly' meta content='320' name='MobileOptimized' meta content='initial-scale=1, user-scalable=yes, width=device-width' name='viewport' link rel='shortcut icon' href='#{image_path('favicon.png')}' = stylesheet_link_tag 'application.css', media: 'all' /[if lt IE 9] = javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.min.js' / ------------------------------------- / Modernizr - Development version / Use the Development version to develop with and learn from. Then, when you’re / ready for production, use the build tool below to pick only the tests you need. / ------------------------------------- = javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.2/modernizr.js' = yield_content :head
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 that isn't happening yet." ^ self collect: [ :each | each asGtRsrProxyObjectForConnection: aRsrConnection ] ]
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 that isn't happening yet." "^ self collect: [ :each | each asGtRsrProxyObjectForConnection: aRsrConnection ]" ^ GtRsrProxyServiceServer object: self ]
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 >> testShouldGetDirectDependencies [ self assert: (checker dependenciesOf: 'Tool-DependencyAnalyser-Test-Data') equals: #(#Kernel) ] { #category : #tests } DADependencyCheckerTest >> testShouldGetUnresolvedDependencies [ | result | result := (checker unresolvedDependenciesOf: 'Tool-DependencyAnalyser-Test-Data'). self assert: result size equals: 1. self assert: ((result at: #collect:as:) includesAll: #(#'GT-Spotter' #'Collections-Abstract')). ]
Class { #name : #DADependencyCheckerTest, #superclass : #TestCase, #instVars : [ 'checker' ], #category : #'Tool-DependencyAnalyser-Test-Core' } { #category : #running } DADependencyCheckerTest >> setUp [ super setUp. checker := DADependencyChecker new ] { #category : #tests } DADependencyCheckerTest >> testShouldGetDirectDependencies [ self assert: (checker dependenciesOf: 'Tool-DependencyAnalyser-Test-Data') equals: #(#Kernel) ] { #category : #tests } DADependencyCheckerTest >> testShouldGetUnresolvedDependencies [ | result | result := (checker unresolvedDependenciesOf: 'Tool-DependencyAnalyser-Test-Data'). self assert: result size equals: 1. self assert: ((result at: #collect:as:) includesAll: #(#'GT-Spotter' #'Collections-Abstract')). ]
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 [ time := TRVITimer new cycleLength: seconds. ] { #category : #refreshing } RTNumberAnimation >> hasCompleted [ | r | (r := animatedValue hasCompleted) ifTrue: [ self refresh ]. ^ r ] { #category : #enumerating } RTNumberAnimation >> onStepDo: aBlock [ blockToExcute := aBlock ] { #category : #refreshing } RTNumberAnimation >> refresh [ blockToExcute value: animatedValue value ] { #category : #actions } RTNumberAnimation >> start [ animatedValue := TRVIAnimatedValue new timer: time; yourself. animatedValue start. ]
" 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 >> after: aBlock [ afterBlock := aBlock ] { #category : #api } RTNumberAnimation >> during: seconds [ time := TRVITimer new cycleLength: seconds. ] { #category : #refreshing } RTNumberAnimation >> hasCompleted [ | r | (r := animatedValue hasCompleted) ifTrue: [ self refresh ]. ^ r ] { #category : #enumerating } RTNumberAnimation >> onStepDo: aBlock [ blockToExcute := aBlock ] { #category : #refreshing } RTNumberAnimation >> refresh [ blockToExcute value: animatedValue value ] { #category : #actions } RTNumberAnimation >> start [ animatedValue := TRVIAnimatedValue new timer: time; finishCallback: afterBlock; yourself. animatedValue start. ]
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 synchronize: each ]. mcPackages := packages copyWithoutAll: icePackages. mcPackages ifNotEmpty: [ Komitter openAndCommitToMonticelloWorkingCopiesFilteredBy: [ :workingCopy | "simple #includes: not works here. Somehow packages are different" mcPackages anySatisfy: [ :each | each name = workingCopy package name]]]
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 higher is required']. packages ifEmpty: [ ^repoBrowser new openWithSpec ]. repos := IceRepository registry select: [ :repo | packages anySatisfy: [:each | repo includesPackageNamed: each name ]]. repos ifEmpty: [ ^self inform: 'Selected packages does not managed by Iceberg']. targetRepo := repos size = 1 ifTrue: [ repos first ] ifFalse: [ UIManager default chooseFrom: (repos collect: #name) values: repos title: 'Choose repository']. targetRepo ifNil: [ ^self ]. (commitBrowser onRepository: targetRepo) openWithSpec
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'; load: #('Zinc-Seaside' 'Seaside-JSON-Core' 'Javascript-Core').
"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'; load: #('Parasol-Tests' 'Zinc-Seaside' 'Seaside-JSON-Core' 'Javascript-Core').
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&nbsp;</button><input type="text" name="terms" /></form></li ><li><a href="/packages/">Browse</a></li ><li><a href="/recent">What's new</a></li ><li><a href="/upload">Upload</a></li ><li><a href="/accounts">User accounts</a></li ><li><a href="/admin">Admin</a></li> </ul> <a class="caption" href="/">Hackage :: [Package]</a> </div>
<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&nbsp;</button><input type="text" name="terms" /></form></li ><li><a href="/packages/">Browse</a></li ><li><a href="/recent">What's new</a></li ><li><a href="/upload">Upload</a></li ><li><a href="/accounts">User accounts</a></li ><li><a href="/admin">Admin</a></li> </ul> <a class="caption" href="/">Hackage :: [Package]</a> </div>
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&nbsp;</button> <input type="text" name="terms" /> </form> </li> <li><a href="/packages/">Browse</a></li> <li><a href="/packages/recent">What's new</a></li> <li><a href="/upload">Upload</a></li> <li><a href="/accounts">User accounts</a></li> </ul> $if(title)$ $title$ </div> $else$ <a class="caption" href="/">Hackage :: [Package]</a> $endif$ </div>
<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&nbsp;</button> <input type="text" name="terms" /> </form> </li> <li><a href="/packages/">Browse</a></li> <li><a href="/packages/recent">What's new</a></li> <li><a href="/upload">Upload</a></li> <li><a href="/accounts">User accounts</a></li> </ul> $if(title)$ $title$ $else$ <a class="caption" href="/">Hackage :: [Package]</a> $endif$ </div>
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. aVersion fileOutOn: file. file close. ] { #category : #accessing } MCDirectoryRepositoryTest >> directory [ directory ifNil: [directory := 'mctest' asFileReference. directory ensureCreateDirectory]. ^ directory ] { #category : #running } MCDirectoryRepositoryTest >> setUp [ super setUp. repository := MCDirectoryRepository new directory: self directory ] { #category : #running } MCDirectoryRepositoryTest >> tearDown [ self directory ensureDeleteAll. super tearDown ]
Class { #name : #MCDirectoryRepositoryTest, #superclass : #MCRepositoryTest, #instVars : [ 'directory' ], #category : #'Monticello-Tests-Repository' } { #category : #actions } MCDirectoryRepositoryTest >> addVersion: aVersion [ (directory / aVersion fileName) asFileReference binaryWriteStreamDo: [ :stream | aVersion fileOutOn: stream ] ] { #category : #accessing } MCDirectoryRepositoryTest >> directory [ directory ifNil: [directory := 'mctest' asFileReference. directory ensureCreateDirectory]. ^ directory ] { #category : #running } MCDirectoryRepositoryTest >> setUp [ super setUp. repository := MCDirectoryRepository new directory: self directory ] { #category : #running } MCDirectoryRepositoryTest >> tearDown [ self directory ensureDeleteAll. super tearDown ]
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: (data at: i) value index. ds x: #yourself. ds y: [ :x| (data at: i) value at: x ]. ds connectColor: (normalize rtValue: (legends at: i)). b add: ds. ]. xLabel ifNil: [ b axisX title: 'Time (days)' ] ifNotNil: [ b axisX title: xLabel ]. yLabel ifNil: [ b axisY title: 'Number of individuals' ] ifNotNil: [ b axisY title: yLabel ]. b axisY noDecimal. lb := RTLegendBuilder new. lb view: b view. self legendTitle ifNil: [ legendTitle := 'Compartments' ]. lb addText: legendTitle. 1 to: legends size do: [ :i| |c| c:= (normalize rtValue: (legends at: i)). lb addColor: c text: (legends at: i) ]. lb build. "b build." b view @ RTZoomableView. ^ b
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 at: i) value index. ds x: #yourself. ds y: [ :x| (data at: i) value at: x ]. ds connectColor: (normalize rtValue: (legends at: i)). b add: ds. ]. xLabel ifNil: [ b axisX title: 'Time (days)' ] ifNotNil: [ b axisX title: xLabel ]. yLabel ifNil: [ b axisY title: 'Number of individuals' ] ifNotNil: [ b axisY title: yLabel ]. b axisY noDecimal. lb := RTLegendBuilder new. lb view: b view. self legendTitle ifNil: [ legendTitle := 'Compartments' ]. lb addText: legendTitle. 1 to: legends size do: [ :i| |c| c:= (normalize rtValue: (legends at: i)). lb addColor: c text: (legends at: i) ]. lb build. "b build." b view @ RTZoomableView. ^ b
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-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package <packageName>; /** * WARNING: AUTO-GENERATED CODE. DO NOT EDIT THIS FILE. */ public final class RiakMessageCodes { <codes> } >>
Add logging to packagesToAnalyse and reject nil packages
Class { #name : #GtClassWithCommentsContainingMissingReferences, #superclass : #GtPharoConstraint, #traits : 'TGtDocumentInvalidCommentsConstraint', #classTraits : 'TGtDocumentInvalidCommentsConstraint classTrait', #category : #'GToolkit-Constraints' } { #category : #accessing } GtClassWithCommentsContainingMissingReferences >> description [ ^ 'All references from class comments should be present in the image.' ] { #category : #accessing } GtClassWithCommentsContainingMissingReferences >> name [ ^ 'Classes with comments containing missing references' ] { #category : #accessing } GtClassWithCommentsContainingMissingReferences >> packagesToAnalyse [ | gtProject | gtProject := BaselineOfGToolkit gtRlProjectWithRepository: 'github://feenkcom/gtoolkit/src'. ^ gtProject allPPackages reject: [ :aPackage | "To avoid changing class comments in ThreadedFFI" aPackage name = 'ThreadedFFI' ] ] { #category : #accessing } GtClassWithCommentsContainingMissingReferences >> status [ ^ GtNeutralConstraintStatus new ]
Class { #name : #GtClassWithCommentsContainingMissingReferences, #superclass : #GtPharoConstraint, #traits : 'TGtDocumentInvalidCommentsConstraint', #classTraits : 'TGtDocumentInvalidCommentsConstraint classTrait', #category : #'GToolkit-Constraints' } { #category : #accessing } GtClassWithCommentsContainingMissingReferences >> description [ ^ 'All references from class comments should be present in the image.' ] { #category : #accessing } GtClassWithCommentsContainingMissingReferences >> name [ ^ 'Classes with comments containing missing references' ] { #category : #accessing } GtClassWithCommentsContainingMissingReferences >> packagesToAnalyse [ | gtProject allPackages | gtProject := BaselineOfGToolkit gtRlProjectWithRepository: 'github://feenkcom/gtoolkit/src'. allPackages := gtProject allPPackages. NonInteractiveTranscript stdout nextPutAll: gtProject asString; cr. NonInteractiveTranscript stdout nextPutAll: allPackages asString; cr. ^ (allPackages reject: [ :aPackage | aPackage isNil ]) reject: [ :aPackage | "To avoid changing class comments in ThreadedFFI" aPackage name = 'ThreadedFFI' ] ] { #category : #accessing } GtClassWithCommentsContainingMissingReferences >> status [ ^ GtNeutralConstraintStatus new ]
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: [ receiver := provider doItReceiver. context := provider doItContext] ifFalse: [ receiver := context := nil]. ^self afterCompiling: aSourceCode do: aBlock for: receiver in: context ifFail: failBlock. ! ! !SmalltalkEditor methodsFor: 'do-its' stamp: 'jmv 4/4/2022 17:42:02'! debugIt self lineSelectAndEmptyCheck: [^self]. self afterCompiling: self selectionAsStream upToEnd do: [ :compiler :method :receiver :context | method ifNotNil: [ self debug: method receiver: receiver in: context ]] ifFail: [].! ! !SmalltalkEditor methodsFor: 'do-its' stamp: 'jmv 4/4/2022 17:42:30'! evaluate: aSourceCode andDo: aBlock ifFail: failBlock profiled: doProfile | result | ^ self afterCompiling: aSourceCode do: [ :compiler :method :receiver :context | method ifNotNil: [ result := compiler evaluateMethod: method to: receiver logged: true profiled: doProfile. aBlock value: result ]] ifFail: failBlock.! ! !methodRemoval: SmalltalkEditor #afterCompiling:do: stamp: 'jmv 4/4/2022 17:42:19'! SmalltalkEditor removeSelector: #afterCompiling:do:!
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 than the image was saved. Might happen, especially on RasPi or other systems without an RTC" lastCycleTime _ Time localMillisecondClock. lastAlarmTime _ 0.! !
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 successful non-inlined primitive, or the current context, if not)." "Copied from Squeak, Context>>#callPrimitive: The message callInlinedPrimitive: is not implemented in Squeak also - Hernan" | maybePrimFailToken | primNumber >= (1 << 15) ifTrue: "Inlined primitive, cannot fail" [^self callInlinedPrimitive: primNumber]. maybePrimFailToken := self doPrimitive: primNumber method: method receiver: receiver args: self arguments. "Normal primitive. Always at the beginning of methods." (self isPrimFailToken: maybePrimFailToken) ifFalse: "On success return the result" [^self methodReturnTop]. "On failure, store the error code if appropriate and keep interpreting the method" (method encoderClass isStoreAt: pc in: method) ifTrue: [self at: stackp put: maybePrimFailToken last]. ^self! !
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" | continue | self initializeInstanceVariables. sourcePosition _ 1. arguments _ Dictionary new. temporaries _ Dictionary new. blockDepth _ bracketDepth := 0. blockDepths _ OrderedCollection with: blockDepth. blockDepthsStartIndexes _ OrderedCollection with: sourcePosition. ranges ifNil: [ ranges := OrderedCollection new: 100] ifNotNil: [ ranges reset]. errorBlock _ [^false]. [ self scanNext. isAMethod ifTrue: [ self parseMessagePattern. self parsePragmaSequence]. self parseMethodTemporaries. isAMethod ifTrue: [self parsePragmaSequence]. "Iterate once for methods, but pontentially several times for workspaces (to recover after errors, for possible good next lines or chunks)" continue _ true. [ continue ] whileTrue: [ self parseStatementList. isAMethod ifTrue: [ "Only if we are parsing a method, consider everything after this point as error." currentToken ifNotNil: [ self error ]. continue _ false] ifFalse: [ sourcePosition > source size ifTrue: [continue _ false]]]. ] ensure: [errorBlock _ nil]. ^true! !
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. [ | thisTally | thisTally _ IdentityBag new: 20. secs * 1000 // msecs timesRepeat: [ delay wait. thisTally add: Processor nextReadyProcess ]. tally _ thisTally. aBoolean ifTrue: [ self findThePig ]] repeat ] newProcess. watcher priority: Processor highestPriority; name: 'CPUWatcher monitor'; resume. Processor yield.! ! !ProcessBrowser methodsFor: 'initialization' stamp: 'pb 8/21/2019 12:16:40'! startCPUWatcher "Answers whether I started the CPUWatcher" CPUWatcher isMonitoring ifFalse: [ CPUWatcher startMonitoringPeriod: 1 rate: 25 threshold: 0.85 suspendPorcine: false. ^true ]. ^false ! !
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 | noneYet ifTrue: [noneYet _ false] ifFalse: [aStream nextPut: $;]. aStream nextPutAll: ' add: '. aStream store: (self associationAt: key)]. noneYet ifFalse: [aStream nextPutAll: '; yourself']. aStream nextPut: $)! !
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 ]) ifTrue: [ self removeProperty: #needsStayUpIcons. ^self ]. titleMorph ifNil: [ "Title not yet there. Flag ourself, so this method is called again when adding title." self setProperty: #needsStayUpIcons toValue: true. ^ self]. closeBox _ PluggableButtonMorph model: self action: #delete. closeBox icon: Theme current closeIcon; color: Color transparent. pinBox _ PluggableButtonMorph model: self action: #stayUp. pinBox icon: Theme current pushPinIcon; color: Color transparent. w _ (titleMorph hasSubmorphs ifTrue: [ titleMorph firstSubmorph morphWidth ] ifFalse: [ 0 ]) + 60. self addMorphFront: (LayoutMorph newRow "Make room for buttons" morphExtent: w @ (titleMorph morphHeight max: 19); color: Color transparent; addMorph: closeBox fixedWidth: 20; addMorph: (RectangleLikeMorph new color: Color transparent) fixedWidth: 4; addMorph: titleMorph proportionalWidth: 1; addMorph: (RectangleLikeMorph new color: Color transparent) fixedWidth: 4; addMorph: pinBox fixedWidth: 20). self setProperty: #hasStayUpIcons toValue: true. self removeProperty: #needsStayUpIcons! !
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: [ :range | selectionStartBlocks add: (textComposition characterBlockForIndex: range first). selectionStopBlocks add: (textComposition characterBlockForIndex: range last + 1) ]. self selectFrom: aRanges last first to: aRanges last last! ! !TextModelMorph methodsFor: 'updating' stamp: 'jmv 9/19/2019 17:31:48'! selectMessage | messageSendsRanges | messageSendsRanges := model textProvider messageSendsRangesOf: model autoSelectString. ^ messageSendsRanges notEmpty ifTrue: [ self editor messageSendsRanges: messageSendsRanges ]; yourself! ! !TextModelMorph methodsFor: 'updating' stamp: 'jmv 9/19/2019 17:30:20'! updateAutoSelect TextEditor abandonChangeText. "no replacement!!" self selectMessage ifFalse: [ self selectString ]. self textMorph updateFromTextComposition. ^self scrollSelectionIntoView! !
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 on: aCollectionOrStream]); mimeStream: outStream; multiLine: true; mimeEncode! !
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 fixed in the future." | r p | p _ (currentTransformation transform: aPoint) rounded. r _ (self depth < 32 or: [ aForm mightBeTranslucent not ]) ifTrue: [ "Rule Form paint treats pixels with a value of zero as transparent" Form paint ] ifFalse: [ Form blend ]. port colorMap: (aForm colormapIfNeededFor: form); fillColor: nil. port image: aForm at: p sourceRect: sourceRect rule: r. (self depth = 32 and: [ aForm depth < 32 ]) ifTrue: [ "If we blit to 32bpp from one of smaller depth, it will have zero in the alpha channel (until BitBlt is fixed!!) This is the same workaround as in #asFormOfDepth:" port sourceForm: nil. port combinationRule: 40. "fixAlpha:with:" port copyBits ]! !
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 "missing openstack.domainName" .Values.openstack.domainName }} {{- if .Values.openstack.projectScope }} tenant-id = {{ .Values.openstack.projectID }} {{- end }} {{- if .Values.openstack.region }} region = {{ .Values.openstack.region }} {{- end }} [LoadBalancer] lb-version=v2 subnet-id= {{ required "missing openstack.lbSubnetID" .Values.openstack.lbSubnetID }} floating-network-id= {{ required "missing openstack.lbFloatingNetworkID" .Values.openstack.lbFloatingNetworkID }} create-monitor = yes monitor-delay = 1m monitor-timeout = 30s monitor-max-retries = 3 [BlockStorage] trust-device-path = no [Route] router-id = {{ required "missing openstack.routerID" .Values.openstack.routerID }}
{{/* 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 "missing openstack.domainName" .Values.openstack.domainName }} {{- if .Values.openstack.projectScope }} tenant-id = {{ .Values.openstack.projectID }} {{- end }} {{- if .Values.openstack.region }} region = {{ .Values.openstack.region }} {{- end }} [LoadBalancer] lb-version=v2 use-octavia = {{ default "no" .Values.openstack.useOctavia }} subnet-id= {{ required "missing openstack.lbSubnetID" .Values.openstack.lbSubnetID }} floating-network-id= {{ required "missing openstack.lbFloatingNetworkID" .Values.openstack.lbFloatingNetworkID }} create-monitor = yes monitor-delay = 1m monitor-timeout = 30s monitor-max-retries = 3 [BlockStorage] trust-device-path = no [Route] router-id = {{ required "missing openstack.routerID" .Values.openstack.routerID }}
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="documentlistmode"> <cmoduletoolbar id="moduletoolbar" /> <cmodulelist id="documentlist" flex="1" /> </vbox> <tal:block change:documenteditors="module <{$name}>" /> </deck> <splitter collapse="after"> <wsplitterbutton /> </splitter> <cressourcesselector width="210" id="ressourcesSelector" collapsed="true" /> </hbox>
<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="documentlistmode"> <cmoduletoolbar id="moduletoolbar" /> <cmodulelist id="documentlist" flex="1" /> </vbox> <tal:block change:documenteditors="module <{$name}>" /> </deck> </hbox>
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_FILES += \ platformio.ini SOURCES += \ % for file in srcfiles: {{file}} % end
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_FILES += \ platformio.ini SOURCES += \ % for file in srcfiles: {{file}} % end
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 %>';<% }); %> <% _.each(chainMethods, function(method) { %> import __<%= method.name %>__ from '<%= method.path %>';<% }); %> function _(value) { if (!(this instanceof _)) { return new _(value); } LodashWrapper.call(this, value); } _.prototype = create(lodash.prototype); // Add the methods used through chaining and explict use mixin(_, { <%= _(config).filter('chained').map('propString').join(',\n ') %> }, true); mixin(_, { <%= _(config).reject('chained').map('propString').join(',\n ') %> }, false); <% _.each(chainMethods, function(method) { %> _.prototype.<%= method.name %> = __<%= method.name %>__; <% }); %> export default _;
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, ['create', 'mixin'])) .each(function(method) { %> import <%= method.name %> from '<%= method.path %>';<% }).value(); %> <% _.each(chainMethods, function(method) { %> import __<%= method.name %>__ from '<%= method.path %>';<% }); %> function _(value) { if (!(this instanceof _)) { return new _(value); } LodashWrapper.call(this, value); } _.prototype = create(lodash.prototype); // Add the methods used through chaining and explict use mixin(_, { <%= _(config).filter('chained').map('propString').join(',\n ') %> }, true); mixin(_, { <%= _(config).reject('chained').map('propString').join(',\n ') %> }, false); <% _.each(chainMethods, function(method) { %> _.prototype.<%= method.name %> = __<%= method.name %>__;<% }); %> export default _;
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 ($(me).validate().pendingRequest > 0) { setTimeout(function() {process_submit(me);}, 500); return false; } $(me).attr("is_validating", false); // disable submit button(s) $(me).find("input[type=submit]").attr("disable", true).css("opacity",0.5) me.submit(); }; {/jq}
{* $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 ($(me).validate().pendingRequest > 0) { setTimeout(function() {process_submit(me);}, 500); return false; } $(me).attr("is_validating", false); // disable submit button(s) $(me).find("input[type=submit]").attr("disabled", true); me.submit(); }; {/jq}
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 title=title|default:_"Log in or sign up" template=dialog_template|default:"_action_dialog_authenticate.tpl" tab=tab|default:"logon" redirect=m.req.path } %} {% endif %}
{# 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, label %} {% lib "css/logon.css" %} {% if icon_before %} <a class="{{ class }}" id="{{ #signup }}" href="#"><span class="{{ icon }}"></span> {{ label }}</a> {% else %} <a class="{{ class }}" id="{{ #signup }}" href="#">{{ label }}<span class="{{ icon }}"></span></a> {% endif %} {% wire id=#signup action={ dialog_open title=title|default:_"Log in or sign up" template=dialog_template|default:"_action_dialog_authenticate.tpl" tab=tab|default:"logon" redirect=m.req.path } %} {% endwith %} {% endif %}
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 %}{% endblock %} <script type="text/javascript"> $(function() { $.widgetManager(); }); </script>
{% 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" %} {% block _js_include_extra %}{% endblock %} <script type="text/javascript"> $(function() { $.widgetManager(); }); </script>
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&amp;user_id={$user.id}&amp;code={$user.code}=">{$smarty.const.APP_URL}?action=confirmAccount&amp;user_id={$user.id}&amp;code={$user.code}</a> </p> <p> If you can't click on the link, please copy and paste it on your browser's address bar. </p> <p> Regards, </p> <p style="color:#9E95AC"> The Influence Networks Team.<br/> <a href="http://influencenetworks.org" target="_blank" title="Influence Networks"> <img alt="Influence Networks" src="" /> </a> </p>
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> {arag_block align="right" template="blank"} {capture assign="welcome"}_("Welcome %s %s"){/capture} {capture assign="logout"}_("Logout"){/capture} {capture assign="profile"}_("My Profile"){/capture} {capture assign="controlpanel"}_("Control Panel"){/capture} {$welcome|sprintf:$firstname:$surname} | {html_anchor uri="user_profile/backend/index" title="$profile"} | {html_anchor uri="user/frontend/logout" title="$logout"} | {html_anchor uri="controlpanel" title="$controlpanel"} {/arag_block} {arag_tabbed_block name="global_tabs"} {$content|smarty:nodefaults|default:""} {/arag_tabbed_block} {literal} Execution: {execution_time} Memory usage: {memory_usage} {/literal} </body> </html>
{* 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> {arag_block align="right" template="blank"} {capture assign="welcome"}_("Welcome %s %s"){/capture} {capture assign="logout"}_("Logout"){/capture} {capture assign="profile"}_("My Profile"){/capture} {capture assign="controlpanel"}_("Control Panel"){/capture} {capture assign="home"}_("Home"){/capture} {capture assign="home_url_site"}{url_site}{/capture} {$welcome|sprintf:$firstname:$surname} | {html_anchor uri="user_profile/backend/index" title="$profile"} | {html_anchor uri="user/frontend/logout" title="$logout"} | {html_anchor uri="controlpanel" title="$controlpanel"} | {html_anchor uri="$home_url_site" title="$home"} {/arag_block} {arag_tabbed_block name="global_tabs"} {$content|smarty:nodefaults|default:""} {/arag_tabbed_block} {literal} Execution: {execution_time} Memory usage: {memory_usage} {/literal} </body> </html>
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->getMinimumLength()}"{/if}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}">{$field->getValue()}</textarea> {if $field->isI18n()} {include file='multipleLanguageInputJavascript'} {/if} {include file='__formFieldFooter'}
{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->getMinimumLength()}"{/if}{* *}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{* *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{* *}>{$field->getValue()}</textarea> {if $field->isI18n()} {include file='multipleLanguageInputJavascript'} {/if} {include file='__formFieldFooter'}
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> {include file=prefs/shared-dependencies.tpl} {jq} {literal} (function(){ {/literal} var id = '#{$p.id|escape}'; var block = '#{$p.preference|escape}_childcontainer'; {literal} if( ! $(id).attr('checked') ) { $(block).hide(); } $(id).change( function() { if( $(id).attr('checked') ) { $(block).show(); } else { $(block).hide(); } } ); })(); {/literal}{/jq} </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> {include file=prefs/shared-dependencies.tpl} {jq} {literal} (function(){ {/literal} var id = '#{$p.id|escape}'; var block = '{$p.preference|escape}_childcontainer'; {literal} if( ! $jq(id).attr('checked') ) { $jq('#' + block).hide(); } $jq(id).change( function() { if( $jq(id).attr('checked') ) { show(block); } else { hide(block); } } ); })(); {/literal}{/jq} </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"> <thead> <tr> <th>Host</th> <th>Protocol</th> <th>Identity</th> <th>Connected</th> <th>Traffic</th> </tr> </thead> <tbody> {foreach key=KEY item=ARRAY from=$PEERINFO} <tr> <td>{$ARRAY['addr']}</td> <td>{$ARRAY['version']}</td> <td>{$ARRAY['subver']}</td> <td>{$ARRAY['conntime']|date_format:$GLOBAL.config.date}</td> <td>{(($ARRAY['bytessent'] + $ARRAY['bytesrecv']) / 1024 / 1024)|number_format:"3"} MB</td> </tr> {/foreach} </tbody> </table> </div> </div>
<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"> <thead> <tr> <th>Host</th> <th>Protocol</th> <th>Identity</th> <th>Connected</th> <th>Traffic</th> </tr> </thead> <tbody> {foreach key=KEY item=ARRAY from=$PEERINFO} <tr> <td>{$ARRAY['addr']}</td> <td>{$ARRAY['version']}</td> <td>{$ARRAY['subver']|replace:'/':''}</td> <td>{$ARRAY['conntime']|date_format:$GLOBAL.config.date}</td> <td>{(($ARRAY['bytessent'] + $ARRAY['bytesrecv']) / 1024 / 1024)|number_format:"3"} MB</td> </tr> {/foreach} </tbody> </table> </div> </div>
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', 'ext-library/Jarvus/ext/override') packageRequirers=array('sencha-workspace/pages/src/Common.js') } {else} <script src="{versioned_url 'js/pages/common.js'}"></script> {/if} <script> Ext.scopeCss = true; Ext.USE_NATIVE_JSON = true; Ext.require('Site.Common'); </script>
{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::resolvePath('sencha-workspace/pages/.sencha/workspace/sencha.cfg')->RealPath); Cache::store($cacheKey, $this->scope['frameworkVersion'] = $workspaceConfig['pages.framework.version']); } ?> <script src="{Sencha::getVersionedFrameworkPath('ext', 'build/ext-all-debug.js', $frameworkVersion)}"></script> {sencha_bootstrap frameworkVersion=$frameworkVersion classPaths=array('sencha-workspace/pages/src', 'ext-library/Jarvus/ext/patch', 'ext-library/Jarvus/ext/override') packageRequirers=array('sencha-workspace/pages/src/Common.js') } {else} <script src="{versioned_url 'js/pages/common.js'}"></script> {/if} <script> Ext.scopeCss = true; Ext.USE_NATIVE_JSON = true; Ext.require('Site.Common'); </script>
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={$languages[ix].value|escape}"> {$languages[ix].display|escape} </a> </td> {if not ($smarty.section.ix.rownum mod 3)} {if not $smarty.section.ix.last} </tr><tr> {/if} {/if} {/section} </tr></table> {/tikimodule}
{* $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 title="{$languages[ix].name|escape}" class="linkmodule" href="tiki-switch_lang.php?language={$languages[ix].value|escape}"> {$languages[ix].display|escape} </a> </td> {if not ($smarty.section.ix.rownum mod 3)} {if not $smarty.section.ix.last} </tr><tr> {/if} {/if} {/section} </tr></table> {/tikimodule}
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" field=$redirect}} {{include file="field_input.tpl" field=$icon}} <div class="form-group pull-right settings-submit-wrapper" > <button type="submit" name="submit" class="btn btn-primary" value="{{$submit|escape:'html'}}">{{$submit}}</button> </div> <div class="clear"></div> </form>
<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}} {{include file="field_input.tpl" field=$redirect}} {{include file="field_input.tpl" field=$icon}} <div class="form-group pull-right settings-submit-wrapper" > <button type="submit" name="submit" class="btn btn-primary" value="{{$submit|escape:'html'}}">{{$submit}}</button> </div> <div class="clear"></div> </form> </div>
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" . }} appVersion: {{.Chart.AppVersion | quote}} {{- end -}}
{{- 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" . }} version: {{.Chart.AppVersion | quote}} {{- end -}}
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> %end </center> </div>
<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, null, null, array('del'=>1)) }} {else} {{ LinkCoreForm::display(t('Remove wallpaper?'), 'user', 'setting', 'design', array('del'=>1)) }} {/if} {{ DesignForm::display() }} </div>
<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, null, null, array('del'=>1)) }} {else} {{ LinkCoreForm::display(t('Remove wallpaper?'), 'user', 'setting', 'design', array('del'=>1)) }} {/if} {{ DesignForm::display() }} </div>
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_step}/3 </div> </div>
<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'} {progressbar_step}/3 </div> </div>
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 halten und Ihnen gelegentlich E-Mails mit Neuigkeiten über diese Kampagne und über unsere anderen Kampagnen und Aktionen zusenden, in denen wir Ihre Unterstützung ebenfalls benötigen könnten. Bitte bestätigen Sie und werden Sie Teil unserer Gemeinschaft:</p> <div>#CONFIRMATION_BLOCK</div> <p style="font-size:14px;font-family: arial,helvetica,sans-serif;">Ich danke Ihnen,<br /> Julia und das WeMove.EU-Team</p> <div>#PRIVACY_BLOCK</div>
<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 halten und Ihnen gelegentlich E-Mails mit Neuigkeiten über diese Kampagne und über unsere anderen Kampagnen und Aktionen zusenden, in denen wir Ihre Unterstützung ebenfalls benötigen könnten. Bitte bestätigen Sie und werden Sie Teil unserer Gemeinschaft:</p> <div>#CONFIRMATION_BLOCK</div> <p style="font-size:14px;font-family: arial,helvetica,sans-serif;">Ich danke Ihnen,<br /> Jörg und das WeMove.EU-Team</p> <div>#PRIVACY_BLOCK</div>
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"> <div id="logon_box" class="widget-content"> <div id="logon_error" class="alert alert-block alert-error"></div> {% include "_logon_form.tpl" page=page|default:"/admin" hide_title %} {% include "_logon_modal.tpl" page=page|default:"/admin" logon_context="admin_logon" %} </div> </div> {% endblock %} {% block logonfooter %} <footer class="logon-footer"> <div class="logon-footer_inner"> <a href="http://www.ginger.nl" target="_blank"><img src="/lib/images/ginger-nl.png" alt="Ginger website"></a> <a href="http://www.driebit.nl" target="_blank"><img src="/lib/images/driebit-nl.png" alt="Driebit website"></a> </div> </footer> {% endblock %}
{% 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"> <div id="logon_box" class="widget-content"> <div id="logon_error" class="alert alert-block alert-error"></div> {# comment %}<= 0.12{% endcomment #} {% optional include "_logon_form.tpl" page=page|default:"/admin" hide_title %} {# comment %}>= 0.13{% endcomment #} {% optional include "_logon_modal.tpl" page=page|default:"/admin" logon_context="admin_logon" %} </div> </div> {% endblock %} {% block logonfooter %} <footer class="logon-footer"> <div class="logon-footer_inner"> <a href="http://www.ginger.nl" target="_blank"><img src="/lib/images/ginger-nl.png" alt="Ginger website"></a> <a href="http://www.driebit.nl" target="_blank"><img src="/lib/images/driebit-nl.png" alt="Driebit website"></a> </div> </footer> {% endblock %}
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_enabled, tab, actions, direction, dispatch, required %} {% if id.is_editable %} <div id="{{ #thepredicate }}" class="ginger-edit__aside--{{ predicate.name }}"> <h3 class="section-title">{{ title }}</h3> {% include "_ginger_connection_widget.tpl" predicate_ids=[predicate.id] %} {% include "_action_ginger_connection.tpl" category=cat.name predicate=predicate.name new_rsc_title=title tabs_enabled=tabs_enabled tab=tab direction=direction actions=actions dispatch=dispatch %} {% if required == "true" %} <input type="hidden" id="{{ #predicate.name }}" value="0" /> {% validate id=#predicate.name type={presence failure_message=_"Field is required"} type={custom against="window.has_connection" failure_message=_"Field is required" args=#thepredicate } only_on_submit %} {% endif %} </div> {% endif %} {% endwith %}
{% 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, direction, dispatch %} {% if id.is_editable %} <div id="{{ #thepredicate }}" class="ginger-edit__aside--{{ predicate.name }}"> <h3 class="section-title">{{ title }}</h3> {% include "_ginger_connection_widget.tpl" predicate_ids=[predicate.id] %} {% include "_action_ginger_connection.tpl" category=cat.name predicate=predicate.name new_rsc_title=title tabs_enabled=tabs_enabled tab=tab direction=direction actions=actions dispatch=dispatch %} {% if required %} <input type="hidden" id="{{ #predicate.name }}" value="0" /> {% validate id=#predicate.name type={presence failure_message=_"Field is required"} type={custom against="window.has_connection" failure_message=_"Field is required" args=#thepredicate } only_on_submit %} {% endif %} </div> {% endif %} {% endwith %}
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.RemainingBytes}}] i += len(payload) - {{$variant.RemainingBytes}} {{else}} cmd.{{ToGoName .Name}} = payload[i:] {{end}} {{end}}
{{$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.RemainingBytes}}] i += len(cmd.{{ToGoName .Name}}) {{else}} cmd.{{ToGoName .Name}} = payload[i:] {{end}} {{end}}
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="control-group"> <label class="control-label" for="new_rsc_title">Page title</label> <div class="controls"> <input type="text" id="new_rsc_title" name="new_rsc_title" value="{{ m.rsc[id].title }}" /> {% validate id="new_rsc_title" type={presence} %} </div> </div> <div class="control-group"> <label for="{{ #published }}" class="control-label">{_ Published _}</label> <div class="controls"> <input type="checkbox" id="{{ #published }}" name="is_published" value="1" /> </div> </div> <div class="modal-footer"> {% button class="btn" action={dialog_close} text=_"Cancel" tag="a" %} <button class="btn btn-primary" type="submit">{_ Duplicate page _}</button> </div> </form>
<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="control-group"> <label class="control-label" for="new_rsc_title">Page title</label> <div class="controls"> <input class="do_autofocus" type="text" id="new_rsc_title" name="new_rsc_title" value="{{ m.rsc[id].title }}" /> {% validate id="new_rsc_title" type={presence} %} </div> </div> <div class="control-group"> <label for="{{ #published }}" class="control-label">{_ Published _}</label> <div class="controls"> <input type="checkbox" id="{{ #published }}" name="is_published" value="1" /> </div> </div> <div class="modal-footer"> {% button class="btn" action={dialog_close} text=_"Cancel" tag="a" %} <button class="btn btn-primary" type="submit">{_ Duplicate page _}</button> </div> </form>
Add a note about installation
# Symfony Upgrade Fixer [![Build Status](https://travis-ci.org/umpirsky/Symfony-Upgrade-Fixer.svg)](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 issues as possible on a given file or directory: ```bash $ symfony-upgrade-fixer fix /path/to/dir $ symfony-upgrade-fixer fix /path/to/file ``` The `--dry-run` option displays the files that need to be fixed but without actually modifying them: ```bash $ symfony-upgrade-fixer fix /path/to/code --dry-run ``` ## Fixers available | Name | Description | | ---- | ----------- |%s ## Contribute The tool is based on PHP Coding Standards Fixer and the [contributing process](https://github.com/FriendsOfPhp/php-cs-fixer/blob/master/CONTRIBUTING.md) is very similar. I see no sense in re-doing it so far.
# Symfony Upgrade Fixer [![Build Status](https://travis-ci.org/umpirsky/Symfony-Upgrade-Fixer.svg)](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 umpirsky/symfony-upgrade-fixer ``` #### Global ```bash composer global require umpirsky/symfony-upgrade-fixer ``` Make sure you have ``~/.composer/vendor/bin`` in your ``PATH`` and you're good to go: ```bash export PATH="$PATH:$HOME/.composer/vendor/bin" ``` Don't forget to add this line in your '.bashrc' file if you want to keep this change after reboot. ## Usage The ``fix`` command tries to fix as much upgrade issues as possible on a given file or directory: ```bash $ symfony-upgrade-fixer fix /path/to/dir $ symfony-upgrade-fixer fix /path/to/file ``` The `--dry-run` option displays the files that need to be fixed but without actually modifying them: ```bash $ symfony-upgrade-fixer fix /path/to/code --dry-run ``` ## Fixers available | Name | Description | | ---- | ----------- |%s ## Contribute The tool is based on PHP Coding Standards Fixer and the [contributing process](https://github.com/FriendsOfPhp/php-cs-fixer/blob/master/CONTRIBUTING.md) is very similar. I see no sense in re-doing it so far.
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="$(this).data('request-data', { checked: $('.control-list').listWidget('getChecked') })" data-request="onDelete" data-request-confirm="<?= e(trans('backend::lang.list.delete_selected_confirm')) ?>" data-trigger-action="enable" data-trigger=".control-list input[type=checkbox]" data-trigger-condition="checked" data-request-success="$(this).prop('disabled', true)" data-stripe-load-indicator> <?= e(trans('backend::lang.list.delete_selected')) ?> </button> </div>
<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-default oc-icon-list"><?= e(trans('backend::lang.reorder.default_title')) ?></a> {% endif %} <button class="btn btn-default oc-icon-trash-o" disabled="disabled" onclick="$(this).data('request-data', { checked: $('.control-list').listWidget('getChecked') })" data-request="onDelete" data-request-confirm="<?= e(trans('backend::lang.list.delete_selected_confirm')) ?>" data-trigger-action="enable" data-trigger=".control-list input[type=checkbox]" data-trigger-condition="checked" data-request-success="$(this).prop('disabled', true)" data-stripe-load-indicator> <?= e(trans('backend::lang.list.delete_selected')) ?> </button> </div>
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 -}} {% endblock stream %} {% block pyout %} {{- output.text | escape -}} {% endblock pyout %} {% block pyerr %} {{- output.traceback | join('\n') | strip_ansi | escape -}} {% endblock pyerr %} {% block data_svg %} <img src="../../{{ output.svg_filename | path2url }}"> {% endblock data_svg %} {% block data_png %} <img src="../../{{ output.png_filename | path2url }}"> {% endblock data_png %} {% block data_jpg %} <img src="../../{{ output.jpeg_filename | path2url }}"> {% endblock data_jpg %} {% block markdowncell %} {% if 'cell_tags' in cell.metadata %} <div class="{{ cell.metadata['cell_tags'][0] }}"> {{ cell.source | markdown2html | strip_files_prefix }} </div> {% else %} <div> {{ cell.source | markdown2html | strip_files_prefix }} </div> {% endif %} {%- endblock markdowncell %}
--- 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 -}}{%- endblock stream -%} {%- block pyout -%}{{- output.text | escape -}}{%- endblock pyout -%} {%- block pyerr -%}{{- output.traceback | join('\n') | strip_ansi | escape -}}{%- endblock pyerr -%} {%- block data_svg -%}<img src="../../{{ output.svg_filename | path2url }}">{%- endblock data_svg -%} {%- block data_png -%}<img src="../../{{ output.png_filename | path2url }}">{%- endblock data_png -%} {%- block data_jpg -%}<img src="../../{{ output.jpeg_filename | path2url }}">{%- endblock data_jpg -%} {%- block display_data -%}{{- output.html -}}{%- endblock display_data -%} {% block markdowncell %} {% if 'cell_tags' in cell.metadata %} <div class="{{ cell.metadata['cell_tags'][0] }}"> {{ cell.source | markdown2html | strip_files_prefix }} </div> {% else %} <div> {{ cell.source | markdown2html | strip_files_prefix }} </div> {% endif %} {%- endblock markdowncell %}
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 0x4404DDEE92BF1079 \ && echo "deb http://resin-packages.s3-website-us-east-1.amazonaws.com/raspbian resin main" >> /etc/apt/sources.list.d/resin.list COPY resin-pinning /etc/apt/preferences.d/ RUN apt-get update && apt-get install -y --no-install-recommends \ less \ libraspberrypi-bin \ module-init-tools \ nano \ net-tools \ ifupdown \ iputils-ping \ i2c-tools \ usbutils \ && rm -rf /var/lib/apt/lists/*
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" >> /etc/apt/sources.list.d/raspi.list \ && apt-key adv --keyserver pgp.mit.edu --recv-key 0x82B129927FA3303E \ && apt-key adv --keyserver pgp.mit.edu --recv-keys 0x4404DDEE92BF1079 \ && echo "deb http://resin-packages.s3-website-us-east-1.amazonaws.com/raspbian resin main" >> /etc/apt/sources.list.d/resin.list COPY resin-pinning /etc/apt/preferences.d/ RUN apt-get update && apt-get install -y --no-install-recommends \ less \ libraspberrypi-bin \ module-init-tools \ nano \ net-tools \ ifupdown \ iputils-ping \ i2c-tools \ usbutils \ && rm -rf /var/lib/apt/lists/*
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> and change</p> <pre><code class="php">define('PH7_ADMIN_MOD', 'admin123');</code></pre> <p>by the new admin folder name.</p> <p>Done! It's really easy, isn't it? ;-)</p>
<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> and change</p> <pre><code class="php">define('PH7_ADMIN_MOD', 'admin123');</code></pre> <p>by the new admin folder name.</p> <p>Done! It's really easy, isn't it? 😉</p>
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_link page="Denkmal_Page_Add" theme="highlight" icon="plus" label="{translate 'Add Event'}"} </div> {/if} <footer class="footer"> {button_link theme='transparent' icon='location' label={$region->getName()|escape} page='Denkmal_Page_City'} {button_link theme='transparent' page='Denkmal_Page_Add' label="{translate 'Add Event'}"} {if $twitterAccount} {button_link theme='transparent' label='Twitter' href="https://twitter.com/{$twitterAccount}" target="_blank"} {/if} {if $facebookAccount} {button_link theme='transparent' label='Facebook' href="https://www.facebook.com/{$facebookAccount}" target="_blank"} {/if} </footer>
{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_link page="Denkmal_Page_Add" theme="highlight" icon="plus" label="{translate 'Add Event'}"} </div> {/if} <footer class="footer"> {button_link theme='transparent' icon='location' label={$region->getName()|escape} page='Denkmal_Page_City'} {button_link theme='transparent' page='Denkmal_Page_Add' label="{translate 'Add Event'}"} {if $twitterAccount} {button_link theme='transparent' icon='twitter' title='Twitter' href="https://twitter.com/{$twitterAccount}" target="_blank"} {/if} {if $facebookAccount} {button_link theme='transparent' icon='facebook' title='Facebook' href="https://www.facebook.com/{$facebookAccount}" target="_blank"} {/if} </footer>
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 labels(spec) %} com.redhat.component="{{ _prefix(spec) }}python{{ spec.short_ver }}-docker" \ name="{{ spec.org }}/python-{{ spec.short_ver }}-{{ spec.prod }}" \ version="{{ _version_selector(spec) }}" \ usage="s2i build https://github.com/sclorg/s2i-python-container.git --context-dir={{spec.version }}/test/setup-test-app/ {{ spec.org }}/python-{{ spec.short_ver }}-{{ spec.prod }} python-sample-app" \ maintainer="SoftwareCollections.org <sclorg@redhat.com>" {% endmacro %} {% macro permissions_setup(spec) %} RUN source scl_source enable {{ spec.scl }} && \ virtualenv ${APP_ROOT} && \ chown -R 1001:0 ${APP_ROOT} && \ fix-permissions ${APP_ROOT} -P && \ rpm-file-permissions {% 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 %} {% macro labels(spec) %} com.redhat.component="{{ _prefix(spec) }}python{{ spec.short_ver }}-container" \ name="{{ spec.org }}/python-{{ spec.short_ver }}-{{ spec.prod }}" \ version="{{ _version_selector(spec) }}" \ usage="s2i build https://github.com/sclorg/s2i-python-container.git --context-dir={{spec.version }}/test/setup-test-app/ {{ spec.org }}/python-{{ spec.short_ver }}-{{ spec.prod }} python-sample-app" \ maintainer="SoftwareCollections.org <sclorg@redhat.com>" {% endmacro %} {% macro permissions_setup(spec) %} RUN source scl_source enable {{ spec.scl }} && \ virtualenv ${APP_ROOT} && \ chown -R 1001:0 ${APP_ROOT} && \ fix-permissions ${APP_ROOT} -P && \ rpm-file-permissions {% 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