Changeset 356


Ignore:
Timestamp:
May 25, 2007, 6:59:46 PM (16 years ago)
Author:
Peter Johansson
Message:

fixes #203. Authors statistics link broken.

Location:
trunk/lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Directory.cc

    r344 r356  
    5656    output_dir_=local_path();
    5757    if (!output_dir_.empty())
    58       output_dir_+="/";
     58      output_dir_+='/';
    5959
    6060    using namespace std;
  • trunk/lib/File.cc

    r345 r356  
    4747    output_dir_=output;
    4848    if (!output_dir_.empty())
    49       output_dir_+="/";
     49      output_dir_+='/';
    5050  }
    5151
     
    6565  std::string File::output_path(void) const
    6666  {
    67     return local_path_+".html";
     67    return output_dir()+name()+".html";
    6868  }
    6969
  • trunk/lib/File.h

    r343 r356  
    5656
    5757    /**
    58        @return output dir for example 'lib' for this file
    59      */
    60     std::string output_dir(void) const;
    61 
    62     /**
    6358       @return output path for example 'lib/File.h.html' for this file
    6459     */
  • trunk/lib/Node.cc

    r345 r356  
    200200        color="dark";
    201201      os << "<tr class=\"" << color << "\"><td>";
    202       os << anchor(*i+"/"+line_type+output_path()
     202      os << anchor(*i+"/"+line_type+"/"+output_path()
    203203                   ,*i, level_+2, "View statistics for "+*i);
    204204      os << "</td><td>" << stats_.lines(*i)
  • trunk/lib/Node.h

    r343 r356  
    131131
    132132    /**
     133       Note that returned string always end with '/' with the
     134       exception when an empty string is returned.
     135
    133136       @return output dir for example 'lib' for this file
    134137     */
     
    136139
    137140    /**
    138        @return output path for example 'lib/File.h.html' for this file
     141       @return output path for example 'lib/Node.h.html' for this file
    139142     */
    140143    virtual std::string output_path(void) const=0;
Note: See TracChangeset for help on using the changeset viewer.