Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !2735

Closed
Created 12 years ago by Administrator@rootOwner
  • Report abuse
Report abuse

Fix not displaying day on commits history

  • Overview 10
  • Commits 1
  • Changes 1

Created by: hiroponz

Attention: This problem is not occured on development mode. I have tested by chrome.

Before: fix_display_day_before

After: fix_display_day_after

Closes #1145 (closed)

Loading
Loading

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: Razer6

    Related to #1145 (closed)

    By Administrator on 2013-01-24T07:10:55 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: riyad

    If you propose a "hack" like this, you should also add a comment with a reason or a link where the issue was discussed. :) Also it should be easily be found (by tools like rake notes) and removed at a future date. I advise you to add something like:

    -# FIXME: fixes a rendering bug in Chrome (see https://github.com/gitlabhq/gitlabhq/issues/1145)

    By Administrator on 2013-01-24T16:11:43 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: dzaporozhets

    Does it really an only solution?

    By Administrator on 2013-01-24T20:41:07 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: hiroponz

    Exchanging month and day also looks good.

    Reason: The number of the head of the line in html source is not displayed, because of chrome bug. For example, "13" is not displayed, if html source is like following. chrome_bug

    Modified:

    diff --git a/app/views/commits/_commits.html.haml b/app/views/commits/_commits.html.haml
    index e7ed971..3215284 100644
    --- a/app/views/commits/_commits.html.haml
    +++ b/app/views/commits/_commits.html.haml
    @@ -2,5 +2,5 @@
       %div.ui-box
         %h5.title
           %i.icon-calendar
    -      = day.stamp("28 Aug, 2010")
    +      = day.stamp("Aug 28, 2010")
         %ul.well-list= render commits

    Screenshot: fix_display_day_after_2

    By Administrator on 2013-01-25T01:43:20 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: dzaporozhets

    I cannot reproduce bug on Vista + Chrome 23 and w7 + chrome 23. Do we really need this hack just? As I know google updates browser automatically.

    By Administrator on 2013-01-25T08:31:04 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: mrohnstock

    Can't reproduce with chrome 24.0.1312.56 (177594) on linux x86_64 in production, too.

    By Administrator on 2013-01-25T09:12:00 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: hiroponz

    I can reproduce bug on w7 + chrome 24.0.1312.56.

    In passing, this problem is not occured on development mode.

    By Administrator on 2013-01-25T08:53:26 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: dzaporozhets

    so only production yes?

    On Fri, Jan 25, 2013 at 10:53 AM, Hiroyuki Sato notifications@github.comwrote:

    I can reproduce bug on w7 + chrome 24.0.1312.56.

    In passing, this problem is not occured on development mode.

    — Reply to this email directly or view it on GitHubhttps://github.com/gitlabhq/gitlabhq/pull/2735#issuecomment-12692654.

    Best regards, Dmitriy

    By Administrator on 2013-01-25T09:00:33 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: hiroponz

    Yes, only production. Because of haml behavior, html is indented on development, but not on production.

    By Administrator on 2013-01-25T09:10:03 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: dzaporozhets

    closed in favor of 8016a7bd

    By Administrator on 2013-01-25T12:19:30 (imported from GitLab project)

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
0 Reviewers
Request review from
Milestone
No milestone
None
None
Time tracking
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
participants
Reference:
Source branch: github/fork/hiroponz/fix-display-day

    0 pending comments