Skip to content

Instantly share code, notes, and snippets.

View kurowski's full-sized avatar

Brandt Kurowski kurowski

View GitHub Profile
@kurowski
kurowski / vscode.css
Last active February 7, 2024 16:01
Custom styles for VSCode
/* Comment Class */
.mtk3.mtki {
font-family: "MonaspiceRn Nerd Font";
font-weight: 500;
}

Keybase proof

I hereby claim:

To claim this, I am signing this object:

diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index 470ddfc..086fd95 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -707,18 +707,21 @@ function node_user_cancel($edit, $account, $method) {
* Implements hook_ENTITY_TYPE_predelete() for user entities.
*/
function node_user_predelete($account) {
- // Delete nodes (current revisions).
- // @todo Introduce node_mass_delete() or make node_mass_update() more flexible.
@kurowski
kurowski / gist:100626
Created April 23, 2009 17:33
selenium_steps.rb
# Cucumber step to tell Selenium to click on arbitrary elements in a page
# (i.e. for testing when using plugins that generate non-semantic HTML)
When /^I click "([^\"]*)"$/ do |text|
selenium.click(%Q{xpath=//*[text()="#{text}"]})
end
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 4ec2ddb..6203dcb 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,9 +1,9 @@
module ApplicationHelper
def logged_in_user
if @user
- content_tag 'p', "You are logged in as #{@user.username}"
+ content_tag 'p', t('messages.logged_in_as', :name => @user.username)
describe "/layouts/application" do
it "should show the content" do
class << template
attr_accessor :did_render_content
end
template.did_render_content = false
render :inline => "<% self.did_render_content = true %>", :layout => 'application'
template.did_render_content.should be_true
end
end