Skip to content

Commit

Permalink
#26 logo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 6, 2024
1 parent 7f2fcb6 commit e4fc393
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@

require 'rubygems'
require 'rake'
require 'rake/clean'

task default: %i[clean test judges rubocop]

require 'rake/clean'
CLEAN.include('target', 'test')

require 'rake/testtask'
desc 'Run all unit tests'
Rake::TestTask.new(:test) do |test|
Expand Down
2 changes: 1 addition & 1 deletion sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
**/

$black: #131515;
$gray: #98b6b1;
$gray: #282828;

section {
width: auto;
Expand Down
2 changes: 1 addition & 1 deletion xsl/awards.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SOFTWARE.
<xsl:template match="/" mode="awards">
<xsl:apply-templates select="/fb" mode="awards"/>
</xsl:template>
<xsl:template match="/fb[not(f)]" mode="awards">
<xsl:template match="/fb[not(f[who_name and award])]" mode="awards">
<p>
<xsl:text>No awards as of yet.</xsl:text>
</p>
Expand Down
9 changes: 8 additions & 1 deletion xsl/index.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@ SOFTWARE.
<a href="">
<img alt="logo">
<xsl:attribute name="src">
<xsl:value-of select="$name"/>
<xsl:choose>
<xsl:when test="$logo = ''">
<xsl:text>https://www.zerocracy.com/svg/logo.svg</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$logo"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</img>
</a>
Expand Down

0 comments on commit e4fc393

Please sign in to comment.